38.1 Password Encryption and Decryption with Public and Private Key Pairs

Encryption and decryption allow communication between two parties to disguise information. The sender encrypts information before sending it and the receiver decrypts the information after receiving it. While in transit, the information is encrypted to ensure that it is protected from an intruder.

Public and Private key pair helps to encrypt information that ensures sensitive data is protected during transmission. Whatever is encrypted with a Public Key can only be decrypted by its corresponding Private Key and vice versa.