Encrypt and Authenticate
What an authenticated cipher adds to encryption: a 16-byte tag over the ciphertext and the associated data, a refusal instead of a wrong plaintext, nonces that must not repeat, and ChaCha20-Poly1305 beside AES-GCM. Real ciphers through the page's own seal and open calls, with test keys.
Seal and Open
The sealed value is ciphertext plus tag; the associated data is covered but not hidden; a changed value is refused.
- Ciphertext Plus Tag
what the sealed value is made of
- Associated Data Is Covered, Not Hidden
authenticated but not encrypted
- A Tampered Message Is Refused
open returns the plaintext or nothing
Nonces and Limits
A nonce from a counter, a second cipher beside AES-GCM, and what an authenticated cipher still does not do.
- Nonce From a Counter
unique nonces from a sequence number and a fixed IV
- ChaCha20-Poly1305 Beside GCM
two authenticated ciphers behind one call
- Honesty Boundary
what authentication does not do, and a simulated receiver