authenticated encryption
Encryption that also proves the data has not been changed, by producing an authentication tag checked during decryption.
In more detail
It gives confidentiality and integrity in one step. AES-GCM and ChaCha20-Poly1305 are the common choices.
Related terms
- Galois/Counter Mode — A mode of using a block cipher such as AES that both encrypts data and produces an authentication tag to detect any tampering.
- authentication tag — A short value, 16 bytes for AES-GCM, produced with the ciphertext that lets the receiver check nothing was changed.
- integrity — The guarantee that data has not been changed, by accident or on purpose, since it was created or sent.
Taught in
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services