Important note: this program is doing what it promises but the programming itself is of very poor quality and for demonstration purposes only. Never ever use this program as source for your own programs because there are a lot of conversions to get it run.
Get more information about this program on
my webpage Libsodium crypto box authenticated hybrid string encryption
For encryption you need your (party A) secret key and the public key from the one you are sending the data to.
Insert your (party A) Secret Key (in Base64 encoding):
Insert recipient's (party B) Public Key (in Base64 encoding):
Insert the string you like to encrypt:
press the encrypt button to proceed:
encrypted (ciphertext) in Base64 encoding:
The output is (Base64) nonce : (Base64) ciphertext
For decryption you need your (party B) secret key and the public key from the one you are receiving the data from.
Insert your (party B) Secret Key (in Base64 encoding):
Insert sender's (party A) Public Key (in Base64 encoding):
Insert the ciphertext you like to decrypt or press the "sample data" button:
The input is (Base64) nonce : (Base64) ciphertext
press the decrypt button to proceed:
decrypted plaintext:
Technical note: this program uses the X25519 key exchange algorithm, XSalsa20 stream cipher for encryption and Poly1305 MAC for authenticated encryption.