Lambright.com › Enigma

⬇ Save this machine to your computer (one file, works offline) · all four machines (zip)

ENIGMA M4

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.

Lampenfeld (lamp board)
Walzen (rotors, left to right): click a window, then type letters to set it
Tastatur (keyboard)
Steckerbrett (click two sockets to connect them; up to 10 cables)
Papierstreifen (paper tape)
IN
OUT
Remember and share this setup
Picture of the Enigma settings

The picture shows the rotors, start letters, ring settings, reflector and plugboard. The settings link rebuilds the same setup when someone opens it; your typed text is never in the link. “Post to X” and “Share on Facebook” each open a small window with the post already written (“Learn to encrypt with frens” and the link to the page you are on); you press Post there. To add your settings picture, use “Save settings picture” and attach it yourself.

Einstellungen (settings): rotors, rings, reflector, plugs

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.

Encode a whole message at once

Current path through the wiring

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

Why no space bar?

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.

Die Zahlen: how big is the secret?

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.

How it works

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.