Home / Wiki / I / Initialization Vector (IV)

Initialization Vector (IV)

Technology and VendorsUpdated 16 Nov 2026

An initialization vector (IV) is a value fed into an encryption algorithm together with the key at the start of encryption, so that the same message encrypted twice under the same cryptographic key produces different ciphertext. Without it, an observer could tell when two messages, such as two card numbers, are identical. The IV is not secret: it is usually sent or stored in the clear alongside the ciphertext, and the recipient needs it to decrypt.

What matters is how it is chosen, which depends on the mode. In AES-CBC, the IV must be random and unpredictable for each message. In counter-based and authenticated modes such as GCM, it acts as a nonce that must never be reused with the same key, since a repeat can expose data and allow forged messages. AES-ECB uses no IV at all, which is one reason it leaks patterns. Correct IV handling is a standard point in reviews of payment data encryption.

Last updated 16 Nov 2026