Secret codes

The one-time pad

Date: 1917Place: New York (United States)Who?: Gilbert Vernam and Joseph Mauborgne

The only cipher that is mathematically impossible to break… as long as nobody cheats

Modern cryptography
One-time pads
One-time pads — used by spies
The Central Intelligence Agency — Public domain — Wikimedia Commons

In brief

In 1917, the American engineer Gilbert Vernam invented a method that combines each signal of a message with a signal from a key tape. The officer Joseph Mauborgne added the decisive rule: the key must be as long as the message, random and used only once. That makes the cipher perfectly secure.

The story

Vernam worked for the telephone company AT&T. Teleprinters code each letter as five signals; he proposed mixing them with those of a second punched tape, the key, then doing the same operation on arrival to recover the text. In 1949, the mathematician Claude Shannon proved that if the key is truly random and never reused, the encrypted message gives the enemy no information whatsoever.

Cold War spies carried tiny key pads whose pages were torn off after use. But huge amounts of key have to be made and delivered. During the Second World War, short of time, the Soviets reused some pages: from 1943, the American Venona project took advantage of this to decrypt some of their messages.

Example

Message 314 + key 792, digit by digit, no carrying: 3+7=0, 1+9=0, 4+2=6 → 006

Did you know?

If the same key is used twice, the two messages can be combined to make the key disappear. That is why it is called “one-time”.

Sources: D. Kahn, The Codebreakers, 1967 (rev. ed. 1996); S. Singh, The Code Book, 1999; F. L. Bauer, Decrypted Secrets, 4th ed., 2007; C. P. Bauer, Secret History: The Story of Cryptology, 2nd ed., 2021; texts written for this site.

In the same family: Modern cryptography