cipher block chaining
An older block cipher mode that mixes each block with the previous one; it hides data but does not detect tampering by itself.
CBC without an integrity check lets attackers modify ciphertext undetected and can enable padding-oracle attacks.
In more detail
Without a separate HMAC, an attacker can alter CBC ciphertext and sometimes use error messages to decrypt it. Prefer an authenticated mode such as GCM.
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.
- authenticated encryption — Encryption that also proves the data has not been changed, by producing an authentication tag checked during decryption.
- AES — The Advanced Encryption Standard: the widely used symmetric encryption algorithm standardised by NIST.
Taught in
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services