Confusion and diffusion

Two properties Claude Shannon set out in 1949 for strong ciphers: confusion hides how the key relates to the ciphertext, diffusion spreads each plaintext bit across the ciphertext.

Confusion and diffusion are the two properties Claude Shannon described in “Communication Theory of Secrecy Systems” (Bell System Technical Journal, 1949) as the means of frustrating statistical cryptanalysis. Confusion makes the relationship between the key and the ciphertext as complex as possible, so the ciphertext reveals little about the key. Diffusion spreads the influence of each plaintext bit over many ciphertext bits, so plaintext statistics such as letter frequencies are dissipated.

In block cipher design, substitution supplies confusion and permutation supplies diffusion, and repeated rounds apply both. AES does this as a substitution-permutation network and DES as a Feistel network. Good diffusion shows as the avalanche effect: one changed input bit changes roughly half the output bits. A monoalphabetic substitution cipher maps each letter to one fixed replacement and spreads nothing, so letter frequencies survive into the ciphertext and frequency analysis breaks it. The properties belong to the cipher’s rounds, not to every use of it: a block cipher in ECB mode still leaks repeated blocks, and a stream cipher masks statistics with its keystream rather than by diffusing them.

Exam relevance: a scenario is likely to describe one property by its effect and ask for its name. Candidates are expected to link confusion with substitution and the key, and diffusion with permutation and the spreading of plaintext statistics.