Marian Rejewski broke Enigma by calculation, not guesswork. The cyclometer he built around 1934 computed quantities independent of the most expensive part of the German key. The five steps below lead from ordinary enciphering to breaking the daily key, and each is something you do, not a description. No prior knowledge is needed; underlined terms explain themselves when clicked.
Enigma is an electric typewriter in which the current from a key travels through several turning drums and comes back, lighting a lamp with a different letter. Type anything and watch what happens inside.
Stepping through the letters with the arrows shows the most important thing: the right-hand turns one position with every key press, so the machine's wiring is different for every letter. The same letter typed twice in a row gives two different results. The current always returns through the by a different route than it came, which is why no letter can be enciphered as itself. That design flaw was exploited by cryptologists throughout the war.
To read a message you need to know all the settings at once. Here is how many possibilities each of them had, with six pairs on the , as in the mid-1930s.
The Germans did not encipher the whole day's traffic with one setting. The operator chose his own three-letter and sent it at the start, enciphered twice in a row at the common to the whole network. The repetition was meant to protect against garbled reception. Instead, it opened Enigma.
These six letters are called the . The letters in positions 1 and 4 are images of the same unknown letter of the message key: the first and the fourth encipherment of exactly the same character.
Walking a cycle letter by letter, as in the previous step, takes minutes. The cyclometer does it at once: two coupled sets of Enigma rotors, the second offset by three positions, because letters 1 and 4 are exactly three key presses apart. Add 26 switches and 26 lamps. Closing a switch lights all the letters of one ; you only need to count the lit lamps.
The machine does not break messages. It serves another purpose: to sweep through all possible rotor settings and record what cycle structure each one gives. Click a letter.
The three groups of numbers in the last row are the of this setting. It depends neither on the plugboard nor on the rings, so of the table from step 1 only what is not struck out remains.
Since the characteristic depends only on the rotors and the position, it can be computed in advance for every possible setting and written into an index. The Cipher Bureau swept six rotor orders of 17,576 positions each with the cyclometer: 105,456 cards, nearly a year's work. Here the same computation takes a second.
Everything is now in place. From the intercepted indicators we read the characteristic, look it up in the catalogue and get the rotor order together with the ground setting, without touching the plugboard.
There was not a single guess in this. Rejewski defeated Enigma with a theorem about permutations, and he himself later pointed out that the decisive factor was the German procedure, not the machine itself.
The catalogue of characteristics, compiled with the cyclometer in the mid-1930s, rested on one assumption: that the message key was enciphered twice at a ground setting common to the whole network. After the reflector was replaced on 2 November 1937 (some literature gives 1 November) it had to be compiled again. On 15 September 1938 the Germans abolished the common ground setting and the catalogue became useless overnight. The introduction of rotors IV and V in December of the same year finished it off: the index would have had to grow from six to sixty orders, from 105,456 to over a million cards. The Cipher Bureau then switched to the Zygalski sheets and the cryptologic bomba.
It is worth keeping the proportions in mind. A characteristic rarely pointed to a single setting; in half the cases about twenty candidates remained, and in the worst over a thousand. The catalogue did not finish the job, it shortened it by three to four orders of magnitude, and the rest was closed by trying the candidates on intercepted text. Even so, that was the difference between an impossible task and one that could be done in a day.
The original cyclometers were destroyed in September 1939, and pictures of them are fragmentary. The wiring of rotors I–V and reflectors A, B and C, and the stepping mechanism including the double step of the middle rotor, are historical and verified with a test setting. The layout of the lamp panel, the look of the console and the colours are a deliberate schematisation and do not pretend to reproduce the machine's appearance.
The rings in the cyclometer module and in the day generator are set to AAA, so the catalogue gives the position relative to the rings, not the absolute one; recovering the rings themselves is a separate task, historically solved by other methods. Positions in which the middle rotor turns within the six-letter window are marked in the search results. They make up 26 percent and in the Cipher Bureau's reckoning were sometimes a source of discrepancies.
The emulator chooses message keys uniformly. If it waited until all 26 letters of each of the three permutations appeared in the traffic, it would need about two hundred intercepts. Instead it closes the missing letters by inference: the cycles of the product always come in pairs of equal length, so of the possible completions usually only one or a few remain. This lets it find the characteristic with as few as sixty messages, like the Cipher Bureau, for which sixty to eighty were enough. The emulator does not reproduce the predictable keys some operators chose (three identical letters, adjacent keys). The Polish cryptologists used them, but neither the catalogue nor the sheets required them. The British cillies were a later and different trick, described in a 1944 glossary.
You can check the core yourself in step 1. Set rotor order II I III, reflector A, rings XMV, ground setting FOL, plugboard AM FI NV PS TU WZ and type ABLABL. The result must be PKPJXI. This is the standard verification setting for military Enigma simulators.