Alan Turing and Enigma: the machine that shortened a war

Bletchley Park, the bombe, Ultra intelligence, and the postwar prosecution of the man who helped save the country that later put him on a banknote.

Article · 0 clicks · Sep 4, 2026

Alan Turing and Enigma: the machine that shortened a war

Bletchley Park, the bombe, Ultra intelligence, and the postwar prosecution of the man who helped save the country that later put him on a banknote.

In the summer of 1939, a shy 27-year-old mathematician reported to a Victorian mansion north of London called Bletchley Park, where the British government had quietly gathered chess champions, crossword fanatics, linguists, and mathematicians. Their assignment was considered close to impossible: break Enigma, the German cipher machine that scrambled military messages into gibberish with odds of roughly 158 million million million possible settings — settings that changed every midnight.

The mathematician was Alan Turing. Within a year, machines of his design were reading the Third Reich's mail. Historians estimate the work at Bletchley shortened the Second World War by around two years and saved millions of lives. It stayed secret for three decades — long enough for Britain to destroy the machines, classify the triumph, and criminally prosecute the man responsible for it.

What made Enigma so hard?

The machine looked like a typewriter in a wooden box. Press a letter and rotors turned, wiring rerouted, and a different letter lit up — with the substitution changing at every keystroke. Both sender and receiver set their machines to the day's secret configuration; without it, intercepted messages were noise. The Germans considered it unbreakable, and by any manual method it effectively was: no army of clerks could try combinations at that scale.

The crucial first cracks came from Poland. Polish mathematicians, led by Marian Rejewski, had broken earlier Enigma versions in the 1930s and built machines to automate the search. Weeks before the invasion of Poland, they handed everything to Britain and France — one of the great undersold gifts in military history. Bletchley started not from zero, but from Poland's shoulders, facing a newer, harder Enigma.

How did Turing beat it?

By finding the machine's one human weakness: a letter could never encrypt to itself, and militaries are creatures of habit. Messages contained predictable phrases — weather reports, headers, the word for "nothing to report", Heil Hitler. If you guessed that a stretch of ciphertext concealed a known phrase, the never-encrypts-to-itself rule let you anchor the guess and reject millions of settings by pure logic.

Turing designed a machine to industrialize that logic: the bombe, a two-meter cabinet of spinning drums that ripped through possible rotor settings and stopped only at configurations consistent with the guessed phrase. Refined by fellow mathematician Gordon Welchman, dozens and eventually hundreds of bombes ran day and night, worked largely by thousands of young women of the Wrens whose contribution stayed unnamed for decades. On good days, the day's Enigma settings fell before breakfast.

The hardest front was the Atlantic, where U-boats used a tougher four-rotor Enigma and Britain's food and fuel convoys were being slaughtered at sea. Turing led the naval section, and the breaks there — helped by codebooks seized from captured U-boats in raids that cost sailors' lives — let convoys be steered around the wolf packs. Bletchley's intelligence, codenamed Ultra, fed nearly every Allied campaign, guarded so fiercely that commanders were sometimes forbidden to act on it without a plausible cover story.

What happened to Turing?

The war ended; the secret did not. Bletchley's staff dispersed under lifelong silence, and Turing went on to lay the foundations of computer science — the theoretical universal machine he had conceived in 1936 became the blueprint idea behind every computer, and his 1950 paper proposing what is now called the Turing test opened the field of artificial intelligence.

In 1952, after reporting a burglary, Turing casually told police about his relationship with a man. He was convicted of gross indecency — homosexuality being criminal in Britain — and given a choice of prison or chemical castration. He chose the injections, lost his security clearance, and in June 1954 was found dead of cyanide poisoning at forty-one, a half-eaten apple at his bedside. The inquest ruled suicide; the country he had helped save did not learn what it had lost until the Ultra secret finally surfaced in the 1970s.

The apology took until 2009, the royal pardon until 2013, and in 2021 Britain put his face on the fifty-pound note. The law used against him was struck down and thousands convicted under it posthumously pardoned under an informal name: Turing's Law. It is as close as history comes to a full circle — the man prosecuted as a security risk now watermarked into the currency of the nation whose survival he quietly engineered.

Back to Learn