Lexicon Labs / Interactive history / No. 02

Alan Turing & EnigmaThe Wiring of a Secret

Alan Turing helped turn a cryptographic challenge into a wartime breakthrough. Explore his work alongside the Polish cryptanalysts, Gordon Welchman and the wider team—then send a signal through a working Enigma I.

01 / The scrambler

Send a signal

Sound is off. Select “Enable sound & test” to hear three notes, then type a letter. No sound plays automatically.

Choose a setup, then press any letter. Gold carries the outward signal; blue carries the return. The rotors advance before the circuit closes.

A
A
A

Rotor order is left → right. Rings and starts use exactly three A–Z letters. Plug pairs must be distinct, such as AV BS CG.

Ready. Press a letter to close the circuit.
current toward the reflectorcurrent returning to the lampsthe other 25 wires of each rotor, at this position
Typed
Lamps lit

Type A–Z on your keyboard, or focus a round key and press Enter or Space. Reset restores your start windows and clears the tape. To decrypt, restore exactly the same complete setup and type the ciphertext. Spaces and punctuation are omitted.

02 / Your first transmission

Five letters. One reversible secret.

1

Set the key

Select I · II · III, reflector B, rings AAA, no plugs and start AAA. “Load AAAAA example” restores this setup and types the message for you.

2

Watch the lamps

Press A five times. The output is BDZGO. The right rotor moves each time, changing the circuit. This is why repeated letters do not repeat in the ciphertext.

3

Read it back

Press Reset to start, then type BDZGO. The output is AAAAA. Sender and receiver need matching rotors, reflector, rings, plugs and starting windows.

What the wiring tells you

The plugboard swaps chosen letter pairs. Current crosses the right, middle and left rotors, turns through the reflector, and returns through the inverse wiring. The reflector makes the transformation reciprocal and prevents a letter mapping to itself. The gold and blue paths show the latest keypress; the dim wires show the other routes at the current position.

Ring settings shift the wiring relative to the rotor alphabet. Start windows choose the initial visible letters. These are separate parts of the key. This model uses historical I–V wirings and selectable reflectors; it does not model every Enigma variant or wartime operating procedure. [2]

Built-in vector checks: running

The double step

The right rotor steps every time. Its turnover notch can advance the middle rotor; when the middle rotor is at its own notch, it advances again on the next keypress and carries the left rotor. With I–II–III, the sequence is ADU → ADV → AEW → BFX. The turnover notch stays tied to the visible alphabet, even when ring settings change. [1]

Run the demonstration to see each step.

Test a hypothesisCould this phrase fit?

Codebreakers guessed a likely phrase, a crib, and slid it under the ciphertext. Any alignment where a letter sits over itself is impossible, because Enigma never maps a letter to itself; Bletchley Park called this a crash.[3][4] Edit either text, then drag the offset slider. Offset 0 aligns the first letters. Red cells are crashes. A crash rejects an alignment; no crash alone does not prove a correct guess.

04 / People behind the signal

Alan Turing.
A shared breakthrough.

The circuit is elegant. Converting intercepted radio signals into useful intelligence took an international network of people, machines and judgement.

1930s / Foundations

From mathematics to machines

Born in 1912, Turing studied mathematics at King’s College, Cambridge, and completed a doctorate at Princeton. His 1936 work on computable numbers helped define what an algorithmic machine can do—and the limits of computation. In 1939 he joined the Government Code and Cypher School at Bletchley Park. [5]

1939–45 / Wartime

Finding the settings

Turing helped develop the British Bombe and worked on naval Enigma. Gordon Welchman’s diagonal board made the search more effective; Harold Keen and the British Tabulating Machine Company turned the ideas into engineered machines. Intercept operators, cryptanalysts, checking staff and Bombe operators—including many women in the WRNS—made the system work at scale. [4]

After 1945 / New questions

Computation, intelligence, life

Turing worked at the National Physical Laboratory and Manchester on early computing, and explored the mathematics of biological pattern formation. His 1950 paper “Computing Machinery and Intelligence” proposed the imitation game, now associated with the Turing test. His research connected abstract logic with machines and the living world. [5] [6]

The story starts before Bletchley

Polish cryptanalysts Marian Rejewski, Jerzy Różycki and Henryk Zygalski pioneered attacks on military Enigma. Rejewski’s team reconstructed rotor wiring and developed mechanised methods, including the Polish bomba. In July 1939 the Polish team shared its knowledge with British and French colleagues near Warsaw. French intelligence had supplied key documentary material. These exchanges transformed British work; the British Bombe used a different approach suited to wartime conditions. [7] [8]

A life cut short

In 1952 Turing was prosecuted for a relationship with another man and subjected to hormonal treatment under the laws then criminalising homosexuality. He died in 1954, aged 41. His scientific legacy also carries a human lesson about the damage caused by persecution. [6]

What did reading the traffic change?

Intelligence derived from high-grade enemy ciphers was known as ULTRA. Enigma decrypts helped the Allies assess plans and movements, including U-boat activity in the Atlantic. Reading messages could inform convoy routing and operational decisions—but intelligence needed timely interpretation and action. Captured documents, direction finding, radar, escorts and other military capabilities also mattered. [8]

There was no single permanent “crack”: different networks used different keys, changed procedures and sometimes became unreadable. Claims that codebreaking shortened the war by a precise number of years depend on an unknowable alternative course of events. We do not present a particular estimate as established fact. The evidence supports a major contribution within a much larger Allied effort. [8]

Enigma is not Lorenz

The Bombe attacked Enigma. Colossus helped attack Lorenz, a different teleprinter cipher used for high-level German communications. Bill Tutte’s analysis and Tommy Flowers’s engineering were central to that separate achievement; Turing did not build Colossus. [9]

SourcesReferences

  1. "Enigma rotor details." Wikipedia. Rotor and reflector wiring tables, turnover notches, double-step sequence and the BDZGO / EWTYX test vectors. https://en.wikipedia.org/wiki/Enigma_rotor_details
  2. "Enigma I." Crypto Museum. History, plugboard practice, rotors IV and V, production figures and standard wiring. https://www.cryptomuseum.com/crypto/enigma/i/index.htm
  3. "Bombe." Wikipedia. Cribs, crashes, menus, Turing's stop estimates, plugboard combinatorics and machine specifications. https://en.wikipedia.org/wiki/Bombe
  4. "The Turing-Welchman Bombe." The National Museum of Computing. https://www.tnmoc.org/bombe
  5. King’s College, Cambridge, The Turing Digital Archive: About Alan Turing. Education, wartime work, computing and morphogenesis.
  6. The Alan Turing Institute, What Alan Turing means to us and Enigma machine goes on display. Machine intelligence and persecution.
  7. GCHQ, The Pyry Forest Meeting and 75th anniversary address. Polish, French and British cooperation. See also Bletchley Park’s Early Days for the three Polish cryptanalysts.
  8. Naval History and Heritage Command, Ultra and the Campaign Against U-boats in World War II; Bletchley Park, Activity role profiles. Intelligence, changing keys, convoy routing and the wider wartime system. The discussion of war-shortening estimates is an editorial caution about counterfactual claims.
  9. The National Museum of Computing, Colossus decrypts to be revealed after 75 years. Lorenz, Tutte, Flowers and the wider team.