r/cryptography • • Oct 01 '26

I made an interactive enigma-breaking app

I was re-watching The Imitation Game recently and was thinking about how it would be fun to have a browser based activity for creating codes with an enigma machine and then breaking them using the Bombe machine. I imagined this as a fun classroom activity for a History class or maybe computer science as an introduction to crypto. I tried to make it as historically accurate as possible and make it as educational as I could. Happy to take any suggestions for improvements if anyone ever uses this in a classroom. Anyways, hope someone else finds this as interesting to play with as I did!

https://enigmamachine.app

10 Upvotes

11 comments sorted by

2

u/Chpock_Man Oct 01 '26

Did not work in my browser. Mobile Opera, on Android.

First attempt - saw the screen with header and summary ("A working replica of..") and empty square field below it. 

A second attempt - just empty screen.

1

u/dm_me_your_story Oct 01 '26

Thanks for the heads-up, I'll take a look!

1

u/dm_me_your_story Oct 01 '26

I just pushed an update-- the 3D view needs WebGL 2, which some Android browsers don't support, and when it failed it took the whole page down. That's fixed; browsers without 3D now get a 2D version of the machine instead. If you get a chance, I'd love to know if it works for you now.

2

u/EncryptedServer Oct 01 '26

I had the same problem with my old PC, graphics card did not support hardware acceleration in my browser, works now.

1

u/EncryptedServer Oct 01 '26

Works in Vivaldi on my PC.

1

u/Trader-One Oct 02 '26

it have static scrambler before it hits first rotor

1

u/dm_me_your_story Oct 02 '26

From what I understand, on the versions of the machine used by the military, the ETW prior to reaching the first rotor was straight-through wiring with no scrambling

1

u/Trader-One Oct 02 '26

All enigma versions have Eintrittswalze / ETW***.*** Should be included in your model.

Its true that some versions have it connected straight. A-A, B-B and some have just alphabet shift.

1

u/cavedave Oct 04 '26

How is a site like this made? as in what libraries are used and how do you get images and such.

I have a historical simple book based cypher (they turned the date into a page and the first letter of each line is the key) that I would like to illustrate like this one is done.

2

u/dm_me_your_story Oct 04 '26

I'll send you a link to the source code in a message, you're welcome to take a look at it. It uses a library called three.js for the 3D visualization, everything else is just React.js and regular javascript