Nacl xsalsa20 Encryption & Decryption

A Playgroud for nacl Secret-key encryption: crypto_stream: xsalsa20_xor

The crypto_stream_xor function guarantees that the ciphertext has the same length as the plaintext, and is the plaintext xor the output of crypto_stream. Consequently crypto_stream_xor can also be used to decrypt



Your Support Matters!

Instead of directly asking for donations, I'm thrilled to offer you all nine of my books for just $9 on leanpub By grabbing this bundle you not only help cover my coffee, beer, and Amazon bills but also play a crucial role in advancing and refining this project. Your contribution is indispensable, and I'm genuinely grateful for your involvement in this journey!

Any private key value that you enter or we generate is not stored on this site, this tool is provided via an HTTPS URL to ensure that private keys cannot be stolen, for extra security run this software on your network, no cloud dependency



Secret-key encryption: crypto_stream

The crypto_stream_xor function encrypts a message m using a secret key k and a nonce n

NaCl does not make any promises regarding the resistance of crypto_stream to "related-key attacks." It is the caller's responsibility to use proper key-derivation functions.

NaCl supports the following secret-key encryption functions:
crypto_streamPrimitiveKEYBYTESNONCEBYTES
crypto_stream_aes128ctrAES-128-CTR1616
[TO DO:] crypto_stream_aes256ctrAES-256-CTR3216
crypto_stream_salsa208Salsa20/8328
crypto_stream_salsa2012Salsa20/12328
crypto_stream_salsa20Salsa20/20328
crypto_stream_xsalsa20XSalsa20/203224

Learn more about Nacl cryptography