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 counter
openssl rand -hex 16 > media.iv

Related terms

Taught in

References