A JavaScript Implementation of RSA public-key cryptography - DEMO

Written by Atsushi Oka
Input

Public Key

Private Key

Padding (SOAEP)
Pad text data with SOAEP

Exponent

Output

Instruction
- Input a text message to the upper textarea.
- Click a "Encrypt" button and get an encrypted message on the lower textarea.
- Copy and paste the encrypted message to the upper textarea. ( simply use "Swap" button.)
- Click a "Decrypt" button and get a decrypted message on the lower textarea.
- Feel great pleasure.
- The button which is next to the public key input field encrypts the message by the public key. Decrypt button works in the same manner.
- The button which is next to the private key input field encrypts the message by the private key. Decrypt button works in the same manner.
- Note that a message which is encrypted by a private key, is a digital signature.
- There are two "Reset" button. There is no difference between them. That just saves the distance of mouse movement.

Contacts
Atsushi Oka