Die Marine-Enigma: vier Walzen, wie die U-Boote sie nutzten.
The four-rotor Enigma M4 of the German Navy (Kriegsmarine), simulated wire by wire. It adds a fourth, thin “Greek” rotor (Beta or Gamma) on the left, and uses a thin reflector. The Greek rotor never turns during typing; only the three right rotors step. Type on the keys (or your keyboard), click a rotor window and type letters to set it, and watch the current in the diagram.
The leftmost slot takes the Greek rotor Beta or Gamma; the other three slots take rotors I to VIII, each used once (choosing one already in use swaps them). The reflector is the thin B or C. Changing any setting clears the tape. You can also set the start letters by clicking a rotor window and typing.
■ Red: current from the key through the plugboard and all four rotors (right to left) to the reflector. ■ Blue: current returning through the rotors (left to right) to the lamp. Grey lines are each rotor's wiring in its present position; they move as the rotor turns. On a narrow screen, scroll sideways.
That is how the real machine worked. The Enigma had 26 letter keys and nothing else: no space, digits or punctuation. Operators ran words together, spelled numbers out, and commonly used X for a space or full stop. Tick the box in Settings and the space bar types X for you.
Counting only what an enemy would have to guess (rotor order, start positions and a ten-cable plugboard), the M4 had about possible settings, which is times the of the three-rotor Enigma I. Ring settings and the reflector choice add more. The extra rotor made the Navy machine harder for the codebreakers, but the machine still never codes a letter as itself.
?test=1 to this page's address to run the self-test.Nothing you type leaves your browser. A teaching toy: do not use it to protect real secrets; the real Enigma was broken in World War II. Built by Wayne Lambright.