Tested tool guide
Tested browser tools
Checked August 16, 2026
What RSA Encryption Tool does, with a checked example
RSA-OAEP encrypts a message with a public key so that only the matching private key can decrypt it. This tool generates a fresh key pair in the browser, then encrypts and decrypts text with the WebCrypto implementation of RSA-OAEP, the standard padding scheme for RSA encryption. The surprise is scale: RSA is not a general message encoder. A 2048-bit key carries at most 190 bytes of plaintext with SHA-256 OAEP, and the same message produces different ciphertext on every run because OAEP adds random padding. Nothing you enter or generate ever leaves the page.
Worked example
A concrete input and expected output from the current implementation.
Input
Hello, world! (encrypt with the public key of a freshly generated 2048-bit pair)
->
Expected output
A 256-byte ciphertext (344 characters if displayed as base64) that differs on every run; decrypting it with the private key returns exactly 'Hello, world!'.
RSA-OAEP is randomized: the padding layer draws a fresh random seed per encryption, so the ciphertext cannot be predicted or reproduced, yet always decodes back to the same message. The 256-byte length is fixed by the 2048-bit modulus, not the 13-byte message.