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
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
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_stream | Primitive | KEYBYTES | NONCEBYTES |
---|---|---|---|
crypto_stream_aes128ctr | AES-128-CTR | 16 | 16 |
[TO DO:] crypto_stream_aes256ctr | AES-256-CTR | 32 | 16 |
crypto_stream_salsa208 | Salsa20/8 | 32 | 8 |
crypto_stream_salsa2012 | Salsa20/12 | 32 | 8 |
crypto_stream_salsa20 | Salsa20/20 | 32 | 8 |
crypto_stream_xsalsa20 | XSalsa20/20 | 32 | 24 |