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