Public Key Encryption: Public key encryption employ public and private key for encryption and decryption. In this method, public key is employed to encrypt messages and merely the corresponding private key can be employed to decrypt them. To encrypt a message, the sender has to know recipient’s public key.