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.
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.
In plain words
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.
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.
More diagrams: The rules of a one-time pad
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.