Skip to content
Book of Riddles

Journey through time

20th century · Germany and Poland, 1930s

Enigma · Schlüsselanleitung 1930

The Enigma

Rotors, plugboard and lamps: how the machine worked and why it was broken all the same

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.

Key sheet and radio message

Rotor order
II I III
Ring setting
24 13 22
Reflector
A
Plug connections
A/M F/I N/V P/S T/U W/Z
Start position
FOL
Indicator
PKPJX I
Radio message
GCDSE AHUGW TQGRK VLFGX UCALX VYMIG MMNMF DXTGN VHVRM MEVOU YFZSL RHDRR XFJWC FHUHM UNZEF RDISI KBGPM YVXUZ

Radio message 1 is the test message from the 1930 key instructions (authentic, with reflector A). It is in German, as sent.

The machine

Rotor order
Ring setting
Reflector

Plugboard

Tap two letters one after the other to connect them. Tap a connected letter to remove the connection.

No plug connections

Lamp panel

Keyboard

Paper tape

Input (empty)

Output (empty)

Seals of this station

  1. Solved solve the puzzle
  2. Best effort decipher the second radio message (reflector B) as well
  3. Masterpiece decipher both radio messages without the setup help and send a reply of your own

The plugboard

The plugboard existed only on the armed forces’ machines. It swaps pairs of letters before and after the rotors.

Source

Crypto Museum: Enigma I

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.

Source

Crypto Museum: Enigma wiring (Walzen, Umkehrwalzen, Kerben)

I EKMFLGDQVZNTOWYHXUSPAIBRCJ Y Q 1

Double stepping

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.

Source

Wikipedia: Enigma machine

In a three-rotor machine, double-stepping affected rotor two only.

The notches

The rotors step on at different places: rotor I at R, II at F, III at W (the window position after turning).

Source

Wikipedia: Enigma machine

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Enigma machine

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.

Source

Frode Weierud, „The Enigma Test Message from 1930“ (CryptoCellar)

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.

Source

Frode Weierud, „The Enigma Test Message from 1930“ (CryptoCellar)

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.

Source

Frode Weierud, „The Enigma Test Message from 1930“ (CryptoCellar)

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.

Source

Frode Weierud, „The Enigma Test Message from 1930“ (CryptoCellar)

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.

Source

Frode Weierud, „The Enigma Test Message from 1930“ (CryptoCellar)

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.

Source

Wikipedia: Enigma machine

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.

Source

Wikipedia: Enigma machine

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

Those procedural mistakes allowed Rejewski to decipher the message keys without knowing any of the machine's wirings.

The bomba

By 1938 Rejewski had invented a device, the “cryptologic bomb”, and Henryk Zygalski his perforated sheets, to make the breaking more efficient.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

It was this feature that the British mathematician and logician Alan Turing exploited in designing the British bombe .

The British bombe

The British bombe was an electromechanical device that Turing designed soon after he arrived at Bletchley Park in September 1939.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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.

Source

Wikipedia: Cryptanalysis of the Enigma

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”.