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's a plain substitution: hold the rotor still and the same key always lights the same lamp.
But it never holds still. Every key press turns the rotor one place first and only then sends the current through, so each letter meets the wiring at a new angle. Press the same key twice and you get two different lamps.
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 steps the rotor to its left by one place.
- 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.
- Type ROTOR on the keyboard further down the page, or on your own keyboard. Or press Type ROTOR for me.
- Watch the strip under these steps fill in: each key you type, and the lamp it lit.
- Copy the lit letters, in order, into the answer box below and press Check.
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.
DefenceA lone rotor repeats every 26 letters, so letters 26 apart share one substitution and enough ciphertext falls to plain frequency counting. Enigma's three rotors stretch that to 16,900 letters. A modern stream cipher like ChaCha20 builds its keystream from a 256-bit key and a fresh nonce, and that keystream doesn't repeat within a message.