Thanks to a comment left in my blog, I realized that my Enigma simulator didn’t perfectly replicate the operation of a real Enigma. I have updated the code and you can download it from here. If you simply want to run the simulator, click here.

You’ll notice that the letters on the rotor wheels now appear in alphabetical order. I originally had the letters scrambled, thinking they were that way on the real Enigma. (They weren’t.) I have tested the revised simulator fairly extensively and everything appears to be in working order. Let me know if you discover otherwise!

Here’s a test message for you to decrypt:

DOMZUY

Before you begin typing, set the rotors to A-B-C and connect E to N, A to Z, and I to L on the plugboard.