History of ciphers · Overview

Enigma: the machine that seemed unbreakable

How Enigma, the German cipher machine of the Second World War, worked, why it was believed unbreakable and how Polish and British mathematicians managed to read its messages.

It looks like a typewriter shut in a wooden box: a keyboard, a panel of lamps with the letters of the alphabet, three or four toothed wheels. You press a letter and another one lights up. You press the same letter again and yet another lights up. This is Enigma, the cipher machine with which the German armed forces protected their communications during the Second World War.

Its makers believed it unbreakable, and the numbers seemed to prove them right: in the army version the possible combinations exceeded a hundred billion billion. Yet its messages were read, first by a small group of Polish mathematicians and then, on an industrial scale, by the British codebreakers of Bletchley Park.

1.59×10^20basic combinations in the army version
26letters: none could be enciphered as itself
1932the year Marian Rejewski reconstructed the rotor wiring

Why it is an exemplary case

The story of Enigma teaches a lesson that still holds: the security of a cryptographic system depends not only on the number of possible keys but also on the structure of the algorithm and the procedures with which it is used. Enigma fell through a combination of design flaws, operators’ habits and mathematical insight.

Rotors
Wired discs that substitute one letter for another and turn at every keypress.
Reflector
Sends the signal back through the rotors: it makes the machine reversible, but prevents a letter from becoming itself.
Plugboard
Swaps pairs of letters before and after the rotors, multiplying the combinations.
Daily key
Rotor order, ring settings and plugboard connections, distributed on monthly sheets.

For the ciphers that preceded Enigma see the Vigenère cipher and the Alberti cipher disk; for the story of how it was broken, breaking Enigma and Bletchley Park.

↑