The technique which makes data or network secure by providing security is recognized as cryptography. It is the craft of devising methods that allow data to be directed in a protected form thus only the recipient who is intended can alone retrieve the information. Network security is extremely grounded on cryptography. Basically, cryptography is an art of covering information by encrypting the message .