ToolPuma Logo

ChaCha20-Poly1305

Authenticated encryption with ChaCha20-Poly1305 (AEAD).

Note: ChaCha20-Poly1305 is an authenticated encryption (AEAD) construction. The encrypt output has the format nonce:ciphertext+tag as hex. Decryption verifies the authentication tag, so a wrong key or tampered ciphertext is rejected with an error.

What Is a ChaCha20-Poly1305?

The ChaCha20-Poly1305 tool provides authenticated encryption (AEAD). It combines the ChaCha20 stream cipher with the Poly1305 message authentication code, so the output both encrypts the data and protects its integrity.

How to Use This ChaCha20-Poly1305

  1. 1
    Enter KeyProvide a 32-byte (64 hex characters) key.
  2. 2
    Enter TextType plaintext to encrypt, or paste nonce:ciphertext+tag hex to decrypt.
  3. 3
    Choose DirectionEncrypt produces the authenticated ciphertext; Decrypt verifies it.

Frequently Asked Questions

It is a 16-byte MAC computed over the ciphertext. Before decrypting, the tag is verified, so a wrong key or any tampering causes decryption to fail with an error.
The output is nonce:ciphertext+tag as lowercase hex. The nonce is needed to decrypt, so it is stored at the front of the string.