Splashery

Playground
Enigma Machine, a still.

AI and Computing · Built from a recipe

Enigma Machine

E♭4 on the minor comb. Its drum rings at 317.9 Hz.

Turn it in the PlaygroundTap the picture to strike it.

The Enigma was a cipher machine German forces used to keep radio messages secret in World War II.

Shelf
AI and Computing
Kind
Built from a recipe
Your own
Type your own message
Sound
Yes
Hands-on
Yes
Licenses
Own work (made in the page)

Its note

Splashery stretches a drumhead over this Splash's outline, twelve inches across, and finds the ways it can ring. Its lowest is 317.9 Hz, 37 cents sharp of E♭4. The next fifteen are its overtones, and each one draws its own figure: sand gathers on the lines that stay still.

The sixteen ways Enigma Machine's drum can ring, lowest first.
  1. 1318 Hz
  2. 2451 Hz
  3. 3537 Hz
  4. 4613 Hz
  5. 5632 Hz
  6. 6734 Hz
  7. 7775 Hz
  8. 8798 Hz
  9. 9843 Hz
  10. 10899 Hz
  11. 11931 Hz
  12. 12976 Hz
  13. 13988 Hz
  14. 141030 Hz
  15. 151072 Hz
  16. 161110 Hz

How to play

Tap the keys to type in code. Hands-on: drag a rotor up or down to set it.

Its controls

ControlKindRangeStart
Type the messageTap
Type itButton
KeyButton
Clean sheetButton
Step backButton
SettingList3 choicesSet it yourself
Left rotorList5 choicesRotor I
Middle rotorList5 choicesRotor II
Right rotorList5 choicesRotor III
ReflectorList2 choicesB
Left ringList26 choicesA (01)
Middle ringList26 choicesA (01)
Right ringList26 choicesA (01)
Left startList26 choicesA
Middle startList26 choicesA
Right startList26 choicesA
PlugboardText

About it

The Enigma was a cipher machine German forces used to keep radio messages secret in World War II. Each key press steps the rotors, including an occasional double step, and a current runs through the plugboard, three wired rotors and a reflector, lighting a different letter. Because the rotors keep turning, the same letter comes out differently each time. Polish mathematicians first broke it in 1932.

Tap a key, or type: the rotors step (with the middle rotor's real double step) and the coded letter lights and goes on the pad. Tap the machine off the keys to decode, or to type the stored message. Tap the pad for a clean sheet; tap the rotors, or press Backspace, to take a letter back. On a keyboard, hold Shift for P and R. Set it in the Splash tab as from a key sheet: three of five rotors, reflector B or C, rings, start letters and up to ten plugboard pairs, shown on the pad. Or pick Barbarossa, 1941, and decode a real German Army message with its published key.

Details

Splats
Opens at 200,000 at Mid Detail, 119,378 at Low, and up to 610,000 at Max

Is it right?

The I–II–III wirings, reflector B, plugboard transformation, and double step agree with published references. Independent encryption matches all six supported rotor orders and nonzero rings in the calculation helper. The interactive splash exposes only one fixed configuration and cannot yet decode the published historical example.

  1. Correct

    Rotors I, II, III and reflector B use the historical wiring.1

    The stored permutations and notch letters Q, E, V match the museum table; the independent reference uses separately written string permutations.

  2. Correct

    Stepping occurs before encryption and includes the middle rotor’s double step.23

    Published double-step sequences and 384 independent 100-letter messages match every intermediate rotor position and output.

  3. Correct

    The plugboard and reflector make encryption reciprocal.2

    No-plug and two nontrivial plugboards are checked across all rotor orders and nonzero rings; resetting and enciphering ciphertext recovers the input, and no letter encrypts to itself.

  4. Correct

    Polish mathematicians broke military Enigma in 1932.4

    The About date agrees with Rejewski’s recovery of the wiring and subsequent Polish cryptanalysis.

  5. Simplified

    The interface represents only a fixed Enigma configuration.12

    It resets to AAA with default rotors and plug pairs. Historical rotor selection, rings, plugs, and starting windows are not selectable.

  6. Simplified

    A historical message would require additional settings.35

    An independent extended reference decodes KCH at WXC to BLA, then the published wartime message using II-IV-V, rings B-U-L, and ten plug pairs. IV/V exist only in the test reference.

  1. 1Enigma wiring, Crypto Museum
  2. 2How Enigma works, Crypto Museum
  3. 3Enigma test examples, Py-Enigma maintainer Brian Neal
  4. 4Enigma history, Crypto Museum
  5. 5Py-Enigma user guide, Py-Enigma maintainer Brian Neal
Simplified
The interface fixes order I–II–III, rings A–A–A, starting windows A–A–A, and plug pairs A–R, G–K, O–X. The helper supports the six I/II/III orders and rings, but those controls are not exposed. Rotors IV and V are absent. Backspace, reversing a key press, and the short pad are conveniences rather than historical machine features.

Sources and credits

Made in Splashery. Its code is MIT.

Share it

This link opens it in the Playground. To put it on your own page, add the element and one script tag. Every option.

https://splashery.app/play/?toy=enigma-machine<script type="module" src="https://splashery.app/play/src/element.js"></script> <splashery-toy toy="enigma-machine"></splashery-toy>

Nearby on the strip