Authenticated encryption with associated data
Authenticated encryption with associated data is a cryptographic construction that encrypts plaintext while authenticating the ciphertext and optional unencrypted associated data.
Real-World Cryptography
Authenticated encryption with associated data is a cryptographic construction that encrypts plaintext, authenticates the ciphertext, and authenticates optional associated data that remains unencrypted.
- How it is used
- Protects communications by combining plaintext confidentiality, ciphertext integrity, and optional authenticated metadata.
- How deep it goes
- Explains inputs, outputs, verification behavior, AES-GCM components, and nonce requirements without developing formal proofs.
- Examples
- Uses sender metadata, Alice-and-Bob message exchange, AES-CBC-HMAC comparison, and JavaScript Web Crypto API code.
- What you can do after
- Apply AEAD via AES-GCM or ChaCha20-Poly1305 while preserving associated data and preventing nonce reuse.
Read how Real-World Cryptography explains authenticated encryption with associated data →
Secure APIs
Authenticated encryption is encryption that provides confidentiality and integrity for ciphertext and optionally associated unencrypted data.
- How it is used
- Protects confidential plaintext and the integrity of selected unencrypted data in encrypted tokens.
- How deep it goes
- Defines ciphertext, authentication tags, associated data, and JWE components without detailing encryption algorithms or implementation steps.
- Examples
- Uses a JWE object containing a protected header, encrypted key, initialization vector, ciphertext, and authentication tag.
- What you can do after
- Evaluate how encrypted token structures preserve confidentiality and authenticate ciphertext plus protected metadata.
Read how Secure APIs explains authenticated encryption with associated data →
Software Security for Developers
Authenticated encryption with associated data is an encryption technique that simultaneously protects ciphertext confidentiality and authenticates both ciphertext and associated plaintext data.
- How it is used
- Secures messages and stored records against disclosure, tampering, and swapping while leaving selected headers readable.
- How deep it goes
- Explains plaintext headers, encrypted bodies, authentication tags, IVs, and Java configuration, but avoids cryptographic internals.
- Examples
- Uses plaintext headers, encrypted message bodies, payment records, AES-GCM Java encryption, and matching decryption inputs.
- What you can do after
- Apply it via Java Cipher and AES-GCM while binding associated data and avoiding IV reuse.
Read how Software Security for Developers explains authenticated encryption with associated data →
Also covered in
What to know first
- confidentialityConfidentiality is the security property of protecting information from access or disclosure to unauthorized parties.
- data integrityData integrity is the property of data being accurate, complete, consistent, and valid throughout its storage, processing, and transfer.
- HMACHMAC is a keyed message authentication code constructed from a cryptographic hash function and a secret key to authenticate data and verify its integrity.
- AESAES is a standardized symmetric block cipher that encrypts and decrypts data in 128-bit blocks using 128-, 192-, or 256-bit keys.
Related concepts
- Galois/Counter Modeincludes · Galois/Counter Mode is an authenticated-encryption mode that combines counter-mode encryption with authentication of ciphertext and associated data.
- ChaCha20-Poly1305includes · ChaCha20-Poly1305 is an authenticated-encryption-with-associated-data construction combining the ChaCha20 stream cipher with the Poly1305 message authentication code.
- confidentialityproduces · Confidentiality is the security property of protecting information from access or disclosure to unauthorized parties.
- authenticityproduces · Authenticity is the quality of being genuine and faithfully representing a claimed identity, source, origin, expression, experience, or content.
- cryptographic primitivekind of · A cryptographic primitive is a fundamental algorithmic building block that provides a basic security function such as encryption, hashing, or digital signing.
Questions about authenticated encryption with associated data
What is authenticated encryption with associated data?
Authenticated encryption with associated data is a cryptographic construction that encrypts plaintext while authenticating the ciphertext and optional unencrypted associated data.
Which Manning books explain authenticated encryption with associated data?
Real-World Cryptography, Secure APIs and Software Security for Developers.
What should I know before learning authenticated encryption with associated data?
Manning books that teach authenticated encryption with associated data usually introduce confidentiality, data integrity, HMAC and AES first.
What kinds of authenticated encryption with associated data are there?
Kinds of authenticated encryption with associated data include Galois/Counter Mode and ChaCha20-Poly1305.
What is authenticated encryption with associated data a kind of?
Authenticated encryption with associated data is a kind of cryptographic primitive. A cryptographic primitive is a fundamental algorithmic building block that provides a basic security function such as encryption, hashing, or digital signing.
What is authenticated encryption with associated data also called?
Authenticated encryption with associated data is also called AEAD.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


