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.
A notebook of random numbers that you and a friend share. Each page is used for one message and then burned.
- 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.
- 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.
- 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.
- 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
- The Code BookSimon Singh (1999), book
- Communication Theory of Secrecy SystemsClaude Shannon (1949), paper
- Journey into cryptographyKhan Academy, course
Related terms
Cite this page Encryption Observer, “The one-time pad”, encryption.observer/terms/one-time-pad/, checked December 2026.