The Lab · Cryptography

Enigma orrery

A plugboard, three rotors and a reflector, drawn as the rings of an orrery. Press a key and watch the current find its way in and back out, then work the machine the way its operators did: from a key sheet, one message at a time.

How this page worksThere is one machine. The drawing shows it, the Machine key panel under the drawing sets it, and the keyboard further down types on it (your own keyboard works too). Each stage lists numbered steps: follow them in order, then press Check.

Everything runs in this tab. The machine is a faithful Enigma I: rotors I to V, reflectors B and C, ring settings, a plugboard and the double step. The key sheet, the nets and every message are synthetic, written for this page. Your progress stays in this browser.

Stage I · one rotor

A wheel of wires

A rotor is a disc with 26 contacts on each face. Inside, 26 wires join every contact on one face to a contact on the other in a fixed, scrambled order. On its own that is a plain substitution: hold the rotor still and the same key always lights the same lamp.

But it never holds still. Every key press first turns the rotor one place, and only then does the current flow, so each letter meets the wiring at a new angle. Press the same key twice and two different lamps light.

This stage uses a one-rotor teaching rig. In the drawing, the keys are the outer ring, the rotor is the wide ring with the wires, and the lamps are the inner ring. The small triangle on the rotor is its notch: in the full machine, when the notch letter shows in the window, the next key press also carries the rotor to its left on by one place.

Your task, step by step
  1. Press Set up the rig, just under these steps. The drawing (to the right of this cardbelow this card) then shows rotor I with A in its window, at the top.
  2. Type ROTOR on the keyboard further down the page, or on your own keyboard. Or press Type ROTOR for me.
  3. Watch the strip under these steps fill in: each key you type, and the lamp it lit.
  4. Copy the lit letters, in order, into the answer box below and press Check.
Since the page opened: nothing typed yet
Typed
Lit

Nothing typed yet.

Watch for itROTOR has two R's and two O's. In the strip, each repeated letter lights a different lamp every time, because the rotor turned in between.

Hints

    DefenceA lone rotor repeats itself every 26 letters: letters 26 apart share one substitution, so enough ciphertext falls to plain frequency counting. Enigma's three rotors stretch that cycle to 16,900 letters. Modern stream ciphers such as ChaCha20 build their keystream from a 256-bit key and a fresh nonce, and it never repeats within a message.

    The exhibit

    The machine

    Machine key
    Umkehrwalze (reflector)
    LeftMiddleRight Walzenlage Ringstellung Window

    Operate it

    Lamps, keys and the pad

    Your own keyboard works too: any letter goes to the machine unless you are typing in a field.

    Lampboard
    Keyboard
    The operator's pad

    The Enigma I had no printer, so usually one operator typed while a second wrote down each lamp.