Sitemap

Member-only story

How Group Theory Made Enigma’s Plugboard Vanish

In 1932 a 27-year-old in Warsaw deleted a hundred billion cipher settings with one fact from group theory about permutations.

13 min readSep 7, 2026

--

Press enter or click to view image in full size
Six cables, a hundred billion arrangements. Image by the author.

The German army’s Enigma machine carried a component whose entire purpose was to multiply keys. Enigma’s plugboard was a patch panel on the front of the machine, and a handful of cables plugged into it swapped pairs of letters on the way into the rotors and again on the way out. Six cables chosen among 26 letters can be arranged in 100,391,791,500 distinct ways, and every one of those arrangements produced a different cipher. A hundred billion settings, sitting in front of the rotors like a second lock in front of the first — and the plugboard was the cheapest part of the machine.

In the autumn of 1932 a Polish mathematician named Marian Rejewskiremoved all hundred billion from the problem. He did not search them, and he did not obtain them from a spy. He noticed that they could not possibly affect the one property of the machine he had decided to measure, and from that moment the plugboard was, for the purposes of his attack, not there. The fact he used appears in the first weeks of a course on group theory, where most students meet it as bookkeeping and never see it do any work: conjugate permutations have the same cycle type…

--

--

Mathcube
Mathcube

Written by Mathcube

Blogging about math, physics, and programming.