Skip to content
CryptographyInternals

08 / 08 · Math basics

Randomness

Why a key must be unpredictable, not just secret.

A key is only as strong as it is unpredictable. A 128-bit key picked from a weak random source might really have only tens of thousands of possible values, and an attacker will try those first.

Dice

01 / 12 · Randomness

A die cannot be predicted

Roll a die twelve times. Knowing every previous roll tells you nothing about the next one: each face has a 1 in 6 chance, every time. That is what random means in cryptography: unpredictable, even to someone who has watched everything so far.