The Enigma machine
Rotors, plugs, lamps… and billions of billions of settings

Alessandro Nassiri — CC BY-SA 4.0 — Wikimedia Commons
In brief
Enigma is an electromechanical cipher machine patented in 1918 by the German engineer Arthur Scherbius. The German army adopted it in the 1920s. With each key pressed, its rotors turn and the encrypted letter changes. The Germans thought it unbreakable: the Poles, then the British, managed to crack it.
The story
When a key is pressed, the current passes through a plugboard that swaps pairs of letters, then three wired rotors, bounces off a reflector and comes back by another path. A lamp lights up under the encrypted letter. Even before the current flows, the first rotor moves on one step: the same letter typed twice gives two different results. With the plugboard, the army version offers about 159 billion billion settings.
But Enigma had weaknesses: a letter is never encrypted as itself, and operators repeated set phrases, such as weather reports. As early as 1932, the Polish mathematician Marian Rejewski reconstructed the machine. In July 1939, Poland passed its discoveries to the French and British. At Bletchley Park, thousands of people then decrypted a large share of German messages every day.
Example
Typing AAAAA might give BDZGO: each A is encrypted differently, and never as A.
Did you know?
Because the machine is symmetrical, the same setting is used to encrypt and decrypt: if A gives B, then B gives A.
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.
The Jefferson wheel cipher
Hagelin’s machines
The Purple machine
The Turing Bombe
The Lorenz cipher machine
SIGABA
Colossus
The Moscow–Washington hotline