In today's information age information sharing and transfer has increased exponentially. With the popularization of Internet and exponential increase in e-commerce transactions security has become an inevitable and an integral part of any e-commerce application. Data integrity, confidentiality, authenticity, non-repudiation have gained tremendous importance and have become important components of information security. There are many risks involved in communication of plain text over Internet. Cryptography is a technique of encoding and decoding messages so that they cannot be interpreted by anybody except the sender and the intended recipient.