RSA Encryption and Decryption

Asymmetric key encryption utilizes a public key to encrypt a secret and a private key to decrypt.

The public key can be shared through insecure channels publicly.

The private key needs to be kept secure.

This method of message sending requires several steps

  1. Receiver generates keys and shares the public key.
  2. Sender encrypts the message using the public key. User sends the ciphertext.
  3. Receiver decrypts the ciphertext using the private key.

1. Receiver - Generate Public and Private Keys

Save the keys. Share the public key with the sender

Public Key:

Private Key:


2. Sender - Encrypt message

Enter your receiver's public key and your secret message to encrypt.

Share the ciphertext with your receiver.

Enter Public Key:

Secret Message to Encrypt:

Encrypted Ciphertext:


3. Receiver - Decode message

Enter your private key and the ciphertext to decrypt

Enter Private Key:

Ciphertext:

Decrypted Message: