ENIGMA

MARVIN'S PRESERVATION PROJECT: MACHINE NO. 2

A machine for keeping secrets. I have added it to the preservation project.

WALZEN / ROTORS
LAMPENFELD / LAMPBOARD
STECKERBRETT / PLUGBOARD
0/10 PAIRS: CLICK TWO SOCKETS TO CONNECT

MESSAGE IN
CIPHER OUT
IM KLARTEXT / AS WORDS

THE MACHINE IS ITS OWN MIRROR. SET THE SAME ROTORS AND PLUGS, TYPE THE CIPHER GROUPS, AND THE MESSAGE WALKS BACK OUT: RUN TOGETHER, X FOR EACH STOP, THE WAY THE RECEIVING OPERATOR READ IT.
SPACES AND FULL STOPS ARE FOR YOUR EYES ONLY: THE MACHINE DROPS THE SPACES, TYPES X FOR EACH STOP, AND TRANSMITS FIVE-LETTER GROUPS, AS THE OPERATORS DID. A SHORT LAST GROUP IS PADDED OUT WITH X: THE DIM TAIL IN THE CIPHER.
ROTORS I–V · RINGSTELLUNG · REFLECTOR A/B/C · AUTHENTIC WIRING, STEPPING AND DOUBLE-STEP ANOMALY.


DIE MASCHINE / WHAT THIS IS

The Enigma is an electromechanical cipher machine, patented by Arthur Scherbius in 1918 and adopted by the German military in the years before the Second World War. Tens of thousands were built. Every branch of the Wehrmacht trusted it, because the numbers seemed unanswerable: rotor choice, rotor positions and plugboard together give roughly 158,962,555,217,826,360,000 possible keys. The Germans concluded that nobody could try them all. They were right. That turned out not to matter.

DER STROMWEG / THE SIGNAL PATH

Every key press sends one pulse of current through the machine:

  1. THE ROTORS STEP FIRST. The right rotor advances every keystroke; at its notch it carries the middle rotor, which can drag the left one along (the famous double-step). The machine never enciphers twice the same way.
  2. The current enters the PLUGBOARD. If the letter is steckered, it is swapped before it reaches the wheels.
  3. It passes through the THREE ROTORS, right to left, each a scrambled alphabet turned to an ever-changing position.
  4. The REFLECTOR (UKW) bounces it back through all three rotors again by a different path, then through the plugboard a second time, and a LAMP lights: that is the cipher letter.

The reflector makes the machine its own mirror: enciphering and deciphering are the same operation with the same settings. It also means a letter can never encipher to itself. That small honesty was the crack in the armour, and the codebreakers drove a truck through it.

DER SCHLÜSSEL / THE KEY

Operators worked from monthly key sheets. The Tagesschlüssel (daily key) fixed the rotor order (Walzenlage), the ring settings (Ringstellung) and the plugboard pairs (Steckerverbindungen). For each message the operator then chose his own three-letter Spruchschlüssel, the message key. He picked a random start position, sent it in clear, and typed the message key at that position to encipher it. The receiver reversed the little dance.

You can replay that dance with the real message below: its indicator reads WXC KCH. Set the wheels to W X C, type KCH, and the lamps answer B L A: the start position for the message itself.

WARUM SIE FIEL / WHY IT FELL

Not by trying every key. Marian Rejewski broke the machine with mathematics in Poland in 1932; in 1939 the Poles handed their work to the Allies, and at Bletchley Park Alan Turing and Gordon Welchman built the Bombe around a simple lever: the crib. A guessed scrap of plaintext, WETTERVORHERSAGE in a morning weather report, an eagerly predictable heading, and the one certainty that no letter is ever itself, let the Bombe discard keys by the million. Operators helped: lazy message keys, reused fillers, stereotyped endings. The machine was very good. The habits around it were not. By some estimates, reading Enigma shortened the war in Europe by years.

The lesson survives every technology: the cipher is only as strong as the person who is bored of using it.

ECHTE FUNKSPRÜCHE / AUTHENTIC MESSAGES 1941

What follows is a real Wehrmacht signal, sent on 7 July 1941 during Operation Barbarossa by the commander of the SS-Totenkopf Division to LVI Armeekorps, and broken again in modern times by Frode Weierud and Geoff Sullivan of the Crypto Simulation Group. Press EINSPIELEN and the machine takes the day's key, dials the message key, copies the ciphertext into MESSAGE IN (and to your clipboard), and the 1941 plaintext walks out below, eighty-five years later, letter for letter.

Reading the decrypt: X is the full stop, numbers are spelled out (EINS AQT DREI NULL = 1830), Q stands for CH (RIQTUNG = RICHTUNG), and place names are sent twice against garbling. The Kenngruppen (RFUGZ, FNJAU), which only named the key net, are omitted here.

TEIL 1 / PART ONE · 07.07.1941 1925 UHR · SS-T DIV KDR AN LVI A.K.
WALZEN II IV V · RINGSTELLUNG 02 21 12 (B U L) · UKW B
STECKER AV BS CG DL FU HZ IN KM OW RX · SPRUCHSCHLUESSEL B L A (INDICATOR WXC KCH)
TEIL 2 / PART TWO · SAME KEY, NEW SPRUCHSCHLUESSEL
WALZEN II IV V · RINGSTELLUNG 02 21 12 (B U L) · UKW B
STECKER AV BS CG DL FU HZ IN KM OW RX · SPRUCHSCHLUESSEL L S D (INDICATOR CRS YPJ)

In translation: Reconnaissance unit from Kurtinowa north-west of Sebez on the flight corridor in direction Dubrowki, Opotschka. Started to move at 18:30. Attack. Infantry Regiment 3 goes slowly but surely forwards. 17:06, I Battalion, Infantry Regiment 3 on the flight corridor starting 16 km east-west of Kamenec.

Message courtesy of Frode Weierud and Geoff Sullivan, cryptocellar.org. A situation report from a Tuesday, preserved by mathematics. Most Tuesdays get less.

DAS LEHRBUCH 1930 / THE TEXTBOOK MESSAGE

Older still: this is the example from the German Army's own 1930 Enigma instruction manual, the most reproduced Enigma message in existence. It predates the war, uses the early reflector A and the older double-key indicator, and shows the machine at its most textbook. Press EINSPIELEN and read a drill exercise from 1930.

Reading it: same conventions as the wartime traffic. X is the stop, Q stands for CH (BEOBAQTET = BEOBACHTET, FEINDLIQE = FEINDLICHE), and numbers are spelled (DREI KM = 3 km). The doubled message-key group that opened the real transmission (PKPJXI) is omitted; we start at the message key A B L.

EXERZIERTEXT / DRILL MESSAGE · GERMAN ARMY MANUAL, 1930
WALZEN II I III · RINGSTELLUNG 24 13 22 (X M V) · UKW A
STECKER AM FI NV PS TU WZ · SPRUCHSCHLUESSEL A B L

In translation: Enemy infantry column observed. Begins at the south exit of Baerwalde. Ends three kilometres east of Neustadt.