261
A browser-based 3D replica of the Enigma I cipher machine that really encrypts and decrypts - and shows you how. Press a key and watch the rotors step, the pawls push the ratchets, and the current run through plugboard, rotors and reflector to the lamp.
WHAT YOU CAN DO
• Type on your keyboard or click the 3D keys
• Open the rotor cover, lift rotors out, swap any three of five, turn the alphabet ring
• Drag patch cables on the plugboard, switch reflector UKW-B / UKW-C
• Follow the signal along the actual wires - orange on the way in, turquoise on the way back - in slow motion or step by step
• X-ray view, exploded view with labelled parts, guided tour, guided message-key procedure
• Encode/decode in five-letter groups; export settings + ciphertext as a short key string and paste it back to decode
CIPHER ACCURACY
Rotors I-V, reflectors B and C, 0-3 plugboard cables, ring settings, and correct stepping including the double-step anomaly. Verified against five reference test vectors (including the 162-letter "Aachen" example decoded with the original message-key procedure) and a property test over 200 random settings. A Self-test button runs the vectors live in your browser.
HOW IT'S BUILT
100% procedural: no 3D models, no image textures, no HDRI, no font files. Every mesh and every texture - wood grain, crackle paint, letters, paper props — is generated in code at start-up.
Three.js r180 + Vite, plain JavaScript, ~6,900 lines in 27 modules. The cipher engine is ~500 lines with zero dependencies. ~279k triangles, 708 kB JS (196 kB gzipped), zero asset files.
Built with Claude Fable 5.2 in Claude Code, in a single agent session from one written brief. I wrote the brief, steered the work and tested the result.
HONEST NOTES
• Rotor windows show letters; the army Enigma I used numbered rings (01–26)
• Stepping linkage and internal wiring are simplified for readability
• Desktop only for now — not tested on touch/mobile
Try this: set the windows to ADU, switch on step-by-step mode and press a key three times to see the double-step.
Built with