b2KIT

Enigma Machine Simulator

Interactive Enigma machine simulation with configurable rotors, reflectors, and plugboard. Encrypt messages like WWII operators.

Tested tool guide Tested browser tools Checked August 16, 2026

What Enigma Machine Simulator does, with a checked example

Set up a historical Enigma configuration and watch plaintext become ciphertext as the rotor windows advance. The simulator lets you select rotor identities and order, a reflector, starting positions, ring settings, and plugboard swaps, so each result belongs to one complete machine state. The usual surprise is that repeated input letters normally produce different output letters because the rotors move between keypresses. A ciphertext is reproducible only when every setting and the original starting position are restored exactly.

Worked example

A concrete input and expected output from the current implementation.

Input

Text: AAAAA
Rotors, left to right: I II III
Reflector: B
Ring settings: A A A
Starting positions: A A A
Plugboard: none

Expected output

BDZGO

This is a standard Enigma I test configuration. The first keypress advances the right rotor from A to B, and successive advances give each repeated A a different electrical path.

How the result is produced

1

Stepping and signal path

On a standard three-rotor setup, the right rotor steps before a letter is enciphered. Notch positions can also advance the middle and left rotors, producing the characteristic middle-rotor double step. The signal travels through the plugboard, across the rotors from right to left, through the reflector, back through the inverse rotor paths, and through the plugboard again.

2

Configuration controls

Rotor order determines which fixed wiring occupies the left, middle, and right slots. Ring settings rotate each wiring relative to its alphabet ring, while window positions define the starting rotational state. Plugboard pairs exchange letters both before and after the rotor path. The reflector makes the transformation reciprocal and prevents a standard Enigma configuration from mapping a letter to itself.

Good uses

  • Reproduce a known Enigma test vector while checking rotor order, ring settings, and starting positions.
  • Work through a historical cipher exercise when the complete daily key and message starting position are known.
  • Demonstrate rotor stepping, turnover, repeated-letter variation, and the rule that a letter cannot encrypt to itself.

Limits and checks

  • Ciphertext alone does not reveal the configuration. Record the reflector, rotor order, ring settings, starting positions, and every plugboard pair.
  • Rotor order is directional. Reading I-II-III from the wrong side produces a different result even when every other setting matches.
  • Spaces, digits, and punctuation are outside the standard 26-letter Enigma alphabet. Do not assume preserved or skipped characters advance the rotors without checking the resulting rotor positions.

Common questions

Can I decrypt ciphertext with the same Enigma settings?

Yes. Enigma's reflector makes enciphering reciprocal, so entering the ciphertext with the identical configuration recovers the plaintext. You must first reset the rotors to the original starting positions. Continuing from the positions left after encryption will not decrypt the message, and a single incorrect plugboard pair or ring setting changes the result.

Is Enigma output suitable for protecting current confidential data?

No. This simulator represents a historical rotor cipher for study, demonstrations, and compatible puzzle work. Enigma has structural restrictions, a historically tractable key system, and well-documented cryptanalytic weaknesses. Use a current, reviewed encryption scheme for real security rather than treating a complex-looking Enigma ciphertext as modern protection.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools