The science and art of manipulating messages in order to create them secure is known as cryptography.....
Two types are:-
Symmetric key cryptography and Asymmetric key cryptography
1) symmetric key cryptography similar key is used for encryption and decryption eg :DES IDEA AES
2) Asymmetric key: public key is used for both encryption and decryption eg: RSA Difere Hellman