initialization vector
A random or unique value fed into encryption with the key, so the same plaintext encrypts differently each time.
In more detail
It is not secret and is stored beside the ciphertext, but reusing one with the same key can leak information. Demos fix it so their output repeats; real systems never do.
Examples
IV = "00" * 12 + "00000002" # twelve byte nonce, then a block counteropenssl rand -hex 16 > media.ivRelated terms
- AES — The Advanced Encryption Standard: the widely used symmetric encryption algorithm standardised by NIST.
- block cipher mode — The method for using a block cipher such as AES on data longer than one block, such as CBC or GCM.
- nonce — A value meant to be used only once, such as a unique number given to a cipher or a random token that marks trusted scripts in a web page.
- CBC mode — Cipher block chaining, a way of running a block cipher in which each block of plaintext is mixed with the previous block of ciphertext before it is encrypted.
- openssl enc — The openssl subcommand that encrypts or decrypts files and data streams with a symmetric cipher such as AES.
- 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.
- crypto.randomBytes() — A node:crypto function that returns bytes from a cryptographically secure random number generator, suitable for keys, IVs and tokens.
Taught in
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Envelope Encryption & Data Protection with KMS — Cloud Security & DevSecOps Engineering
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services