What is the RSA Encryption and Decryption?
With RSA, anyone can encrypt with your public key, but only your private key can decrypt. Paste a PEM key and a short message to try it out. The tool uses RSA-OAEP with SHA-256.
Features
Public key encryption
RSA-OAEP, SHA-256.
Decrypt
With the private key.
How to use the RSA Encryption and Decryption
- 1
Paste the message and the key.
- 2
Choose Encrypt or Decrypt.
- 3
Copy the result.
Who it is for
Learning
See how public key encryption works.
Tips for better results
- RSA can only encrypt short messages. Real systems encrypt a random AES key with RSA.
Questions people ask
Is it free?
Yes, free and private.
Is what I type sent anywhere?
No. Everything runs in your own browser with its built-in cryptography. Nothing is sent to our server or saved.
Why is there a length limit?
RSA can only lock a short piece of data (about 190 characters with a 2048-bit key). For longer text, use AES Encryption with a password.