The Internet technology is being used almost in every field. The security and originality of data has now become very challenging. So it is not safe to send confidential data from one computer to another computer. The confidential data may be bank statements, bank transaction, military information, confidential data of companies etc. Hence the data should be protected from any unwanted intruder otherwise any massive disaster may happen all on a sudden. There are a large number of methods and techniques to achieve security goals, one of these is cryptography.