decoder.tools

Enigma Machine Simulator

Simulate M3 and M4 Enigma rotors, plugboard and reflector to decode messages.

on the roadmapClassical & Obfuscated Ciphersfree · no sign-up

This bench is being wired up

The enigma-simulator decoder is on the roadmap. The heavier binary and cryptographic parsers ship after the core text and token decoders — all of which are already live and working.

Browse the live decoders

Input is processed on your device. Nothing you paste is sent anywhere.

What is the Enigma Machine Simulator?

An Enigma simulator reproduces the rotor wiring, stepping mechanism, reflector and plugboard of the German Enigma machine, so that with the correct settings it decodes historical ciphertext exactly as the original hardware did.

Enigma is an electromechanical polyalphabetic cipher. A keypress sends current through the plugboard, then three (or four, on the naval M4) rotors, into a reflector, and back out through the rotors and plugboard to light a lamp. Because a rotor steps with every keypress, the substitution alphabet changes constantly — the same letter typed twice rarely encodes the same way.

The settings that define a message key are the rotor selection and order, the ring settings (Ringstellung), the starting positions (Grundstellung) and the plugboard pairs (Steckerbrett). Get any of them wrong and the output is noise; get them all right and the ciphertext falls out as German plaintext.

The reflector is what made Enigma reciprocal — encoding and decoding use identical settings — and also what broke it: no letter could ever encode to itself. That single constraint gave Bletchley Park the cribs that made the Bombe attack work.

Enigma Machine Simulator at a glance

Models
M3 (3 rotors) and M4 (4 rotors, naval)
Settings
Rotor order, Ringstellung, Grundstellung, plugboard
Reciprocal
Same settings encode and decode
Fatal flaw
No letter ever encrypts to itself

How to use the Enigma Machine Simulator

  1. 1Select the rotor order and reflector for the machine model you are simulating.
  2. 2Set the ring settings, starting positions and any plugboard pairs.
  3. 3Paste the ciphertext in five-letter groups and read the plaintext.

When you would reach for it

  • Decoding historical Enigma traffic for research or a museum exhibit.
  • Teaching rotor cryptography and why the self-encipherment flaw mattered.
  • Solving an Enigma-based challenge in a cryptography competition.

Enigma Machine Simulator — frequently asked questions

Last reviewed · questions or corrections: contact@decoder.tools