Back to list

Bombe Bench

An Enigma you can open up, and the Bombe that broke it — every keypress traced through the rotors, every attack run in your browser.

Stefan Monroe
Author
@Stefan Monroe
Project ShowcaseEducationOnlineclaude-code
3
0

Project intro

The Enigma machine is usually a black box in textbooks, and the Bombe that broke it is even more abstract. Bombe Bench opens both up in your browser. The Machine tab is an accurate Wehrmacht Enigma I — rotors I to V, reflectors, ring settings, plugboard, double stepping — and every keypress lights the signal's path through the plugboard, the three rotors and the reflector and back. The Attack tab slides a crib along the ciphertext, builds the menu graph, and runs a simulated Turing-Welchman Bombe over every rotor order and position until only the stops are left.

It is fast enough to feel like a machine, not a lecture: the full Bombe search over all 60 rotor orders finishes in about a second, streamed from a Web Worker with live progress, and each stop lists the plugs it implies, how many crib letters they reproduce, and a checking-machine verdict. You can wind a stop back to the start of the message, decrypt it, and load it into the Machine tab — or follow one hypothesis step by step in the tracer to see exactly why a wrong position collapses.

Teachers get something practical too: pick a message from a bank of stereotyped wartime traffic — weather reports, convoy sightings — choose the plug pairs and difficulty, and share it as a link. Students open the intercept and crib, paste in a decryption, and get it graded letter by letter. The whole thing runs in the browser with no backend and no AI calls, and the Enigma itself is covered by 55 tests, including textbook vectors from the 1930 instruction manual. It has 2 stars so far.

Three honest limits: the middle rotor must not step inside the crib, so a crib longer than about fifteen letters has a fair chance of straddling a turnover; stops are reported with ring settings at A, so a message with other ring settings decrypts through the crib and drifts after the first turnover; and it is Enigma I only — no M4, no Uhr, no rewirable reflector. It is MIT licensed.

Actions

Visit project URL

Tech stack

typescript

Project info

Project category
Education
Project status
Online
Collaboration intent
None

Comments (0)

ME
0/1000
Loading comments...