ChaCha20-Poly1305 Encryption & Decryption

Encrypt or decrypt text and files with authenticated ChaCha20-Poly1305.



How to use

Keep the full ciphertext, including its tag. Decryption needs the same nonce and exactly the same AAD. Use a fresh nonce for each encryption with the same key.

FAQ

Where is the authentication tag checked?

Your browser verifies the tag with the supplied key, nonce and AAD before displaying decrypted data. Those inputs are not uploaded.

What is supported?

Use a 32-byte Hex key and a 12-byte Hex nonce. Optional additional authenticated data (AAD) is read as UTF-8. The last 16 output bytes are the authentication tag. Files are limited to 8 MiB.

Other Languages

ChaCha20-Poly1305 Encryption & Decryption — Base64.sh

ChaCha20-Poly1305 Encryption & Decryption

Encrypt or decrypt text and files with authenticated ChaCha20-Poly1305.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Decrypt the generated ciphertext/tag with Node ChaCha20-Poly1305 using the same AAD; reject a tampered ciphertext.
Comparison reference
Node.js 24.22.1 crypto (OpenSSL 3.5.9) chacha20-poly1305 versus @noble/ciphers 2.4.0.
Verification scope
Covers a fixed authenticated encryption case with AAD and rejection of one modified ciphertext.
Test source and cases (select a file to read it)
  • completion-tools.test.js
    • chacha20-poly1305: Node authentication and tamper rejection
    • Secret fields start empty and fixed vectors are confined to the explicit example action

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.