Rotors, plugboard and lamps: how the machine worked and why it was broken all the same
Book IX · 20th century
Scene From 1930 the German army used a rotor machine called Enigma I. Following a key sheet the operator set rotors, rings and plugs, typed the text, read off the lamps that lit up and sent the letters by radio.
Below is the key sheet for a radio message. Set the machine up exactly as it says: rotor order, ring settings, reflector, plugs and the start position in the three windows. Then type the indicator: if the first three output letters match the next three, the message key appears twice and the setup is right. Set the windows to that message key and type the radio message. The lamps show the plaintext. With the “type it for me” buttons the machine does the typing.
The plugboard was exclusive to the German Armed Forces.
The wiring
The rotor wirings in the game: I EKMFLGDQVZNTOWYHXUSPAIBRCJ, II AJDKSIRUXBLHWTMCQGZNPYFVOE, III BDFHJLCPRTXVZNYEIWGAKMUSQO, reflector B YRUHQSLDPXNGOKMIEBFZCWVJAT. The Crypto Museum table also gives the notch. Whether the table itself is right we checked with the 1930 test message and with the value BDZGO for AAAAA.
Double stepping: when the middle rotor is at its notch, it turns together with the left rotor on the next key press, even without the right one carrying it. With three rotors that affects the middle one only. In the game the sequence runs ADU, ADV, AEW, BFX.
Rotor Turnover position(s) BP mnemonic I R Royal II F Flags III W Wave
Notches give the order away
Because the notches of the rotors sit at different places, codebreakers could work out the rotor order by observing when the middle rotor was turned over by the right-hand rotor.
The notches in the alphabet rings of rotors I to V were in different positions, which helped cryptanalysts to work out the wheel order by observing when the middle rotor was turned over by the right-hand rotor.
How many settings
How many settings does the army Enigma have? With five rotors to choose from and ten plug pairs, almost 159 quintillion. That is for the later machine; in the game you have three rotors and at most ten pairs.
the military Enigma has 158,962,555,217,826,360,000 different settings
The key sheet
The key sheet for radio message 1: rotor order II I III, ring setting 24 13 22, start position 06 15 12, six plug pairs. It is given like that in the English translation of the 1930 key instructions.
Wheel Order : II I III Ringstellung : 24 13 22 Grundstellung: 06 15 12
Authentic and error-free
Radio message 1 is the test message from that manual. Weierud writes that it is authentic: it can be enciphered and deciphered without errors with the given settings. Our calculation core reads it without errors.
Amazingly enough it turns out that this message is authentic.
The indicator
The first six letters, PKPJXI, are the message key enciphered twice. Deciphered at the start position FOL they give ABL, and that is the start position for the message.
The first six letters of the message, here with a strike-through – PKPJX I, are the twice enciphered start position. Deciphering this at the Grundstellung , FOL, gives the message key or start position: ABL.
Reflector A
The test message belongs to reflector A. All A reflectors were later rewired to C and none has survived.
Because all Umkehrwalze A were rewired to Umkehrwalze C no such reflector has ever been found.
A security blunder
A blunder of the cipher office: according to Weierud it did not realise that such a 90-letter message could have been a great help in recovering the rotor wiring.
It seems that the German cipher office, which was responsible for this document, did not realize that this 90 letter long message could have been of a great help in recovering the Enigma wheel wiring.
Two weaknesses
Two weaknesses of the procedure: all messages of a day began from the same start position, and the message key was enciphered twice. The latter, according to Wikipedia, was a serious security flaw.
The second problem was the repetition of the indicator, which was a serious security flaw.
Six letters
The message key was enciphered twice, so the first and fourth, second and fifth, and third and sixth letters are related. Exactly this relation was what Rejewski used.
The message setting was encoded twice, resulting in a relation between first and fourth, second and fifth, and third and sixth character.
Rejewski 1932
In December 1932 the mathematician Marian Rejewski broke the Enigma at the Cipher Bureau of the Polish General Staff, using permutation theory and material France had obtained from the German spy Hans-Thilo Schmidt.
In December 1932 it was broken by mathematician Marian Rejewski at the Polish General Staff 's Cipher Bureau
The procedural flaws
Rejewski quickly spotted the procedural weaknesses: a single start position for all messages of a day, and the repetition of the message key. That let him decipher the message keys without knowing any of the machine’s wirings.
By 1938 Rejewski had invented a device, the cryptologic bomb , and Henryk Zygalski had devised his sheets , to make the cipher-breaking more efficient.
Two new rotors
On 15 December 1938 the army introduced two additional rotors (IV and V). The number of possible rotor orders rose from 6 to 60.
On 15 December 1938, the German Army increased the complexity of Enigma enciphering by introducing two additional rotors (IV and V). This increased the number of possible wheel orders from 6 to 60.
July 1939
In July 1939, five weeks before the war began, the Polish Cipher Bureau shared its methods with the French and the British.
Five weeks before the outbreak of World War II, in late July 1939 at a conference just south of Warsaw , the Polish Cipher Bureau shared its Enigma-breaking techniques and technology with the French and British.
Never itself
One weakness lies in the design: a letter could never be enciphered to itself, a consequence of the reflector. That ruled out places where a guessed plaintext could not fit.
A letter could never be encrypted to itself, a consequence of the reflector.
Crib-dragging
With a probable piece of plaintext (a “crib”) and this rule, every position of the piece was tested against the ciphertext: crib-dragging. That was only one part of the process of finding a key.
With a combination of probable plaintext fragment and the fact that no letter could be enciphered as itself, a corresponding ciphertext fragment could often be tested by trying every possible alignment of the crib against the ciphertext, a procedure known as crib-dragging.
Turing
The British mathematician Alan Turing exploited this property in designing the British bombe.
The British bombe was an electromechanical device designed by Alan Turing soon after he arrived at Bletchley Park in September 1939.
Welchman’s board
Gordon Welchman proposed adding a diagonal board to the bombe. It exploited that plugboard connections are reciprocal and reduced the number of incorrect rotor settings the bombes found.
It was this property that led mathematician Gordon Welchman at Bletchley Park to propose that a diagonal board be introduced into the bombe, substantially reducing the number of incorrect rotor settings that the bombes found.
Not unbreakable
Not unbreakable, but not broken by chance either: according to Wikipedia, good, enforced procedures would have made the plugboard Enigma unbreakable to the Allies at that time. Weaknesses of design and of use went together.
Good operating procedures, properly enforced, would have made the plugboard Enigma machine unbreakable to the Allies at that time.
Our game
Our game is simplified: only rotors I to III, only reflectors A and B, the procedure with the twice-enciphered message key (as until 1938). Radio message 2 and the reply are our own inventions. In the test message X stands for a full stop and Q for “CH”.