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.

  1. Ciphertext Plus Tag

    what the sealed value is made of

  2. Associated Data Is Covered, Not Hidden

    authenticated but not encrypted

  3. 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.

  1. Nonce From a Counter

    unique nonces from a sequence number and a fixed IV

  2. ChaCha20-Poly1305 Beside GCM

    two authenticated ciphers behind one call

  3. Honesty Boundary

    what authentication does not do, and a simulated receiver