With the increased use of technology specially internet, 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. Cryptography is the process used to make a meaningful message appear meaningless.