In public-key cryptography, there are two keys: a private key and a public key. The private key is kept by the receiver. The public key is announced to the public. |
Imagine Sender, as shown in Figure, wants to send a message to receiver. Sender uses the public key to encrypt the message. |
When the message is received by Receiver, the private key is used to decrypt the message. |