Encryption Observer

Glossary A short history

The one-time pad

A one-time pad uses a truly random key as long as the message, used once and then destroyed. Done correctly, the encrypted message gives away nothing at all, however much computing power an attacker has.

Think of it like this

A notebook of random numbers that you and a friend share. Each page is used for one message and then burned.

The rules of a one-time padAll four must holdWhat happens when one failsBreak any one rule and the cipher can be broken. Reused pages let US and British codebreakers read about 3,000 Soviet messages.
  1. Truly random The key must come from a genuinely unpredictable source. Why: Patterns in the key leak into the message Computer 'random' numbers are not enough.
  2. As long as the message Every letter needs its own piece of key. Why: A shorter key has to repeat Repetition gives codebreakers a foothold.
  3. Kept secret Both sides must hold the key and nobody else. Why: Delivering the key safely is the hard part Why it is impractical for everyday use.
  4. Never reused Each page of key is used once, then destroyed. Why: Venona: duplicated Soviet pad pages let US and British codebreakers read about 3,000 messages The most common way it has failed.

Why it matters

Perfect secrecy turns out to be possible, but impractical: you have to deliver a key as big as everything you will ever send, and never reuse it.

Where you meet it

Cold War spy stories and the Moscow-Washington hotline. Almost never in everyday technology.

Go deeper history and technical detail

Gilbert Vernam invented the electrical version in 1917 (patented 1919), and Claude Shannon proved its perfect secrecy in work published in 1949. Reuse is fatal: in the Venona project, US codebreakers read thousands of Soviet messages because some pad pages had been used twice. Modern stream ciphers imitate the one-time pad by stretching a short key into a long random-looking stream.

Read or watch next

Related terms

Cite this page Encryption Observer, “The one-time pad”, encryption.observer/terms/one-time-pad/, checked December 2026.