My Enigma
My Enigma
My Enigma is a faithful simulation of the German cryptographic encoding machine used in World War II. The simulator demonstrates the original three rotor system--including the double stepping feature--with a fixed reflector. The Enigma is one of the most studied and storied rotary encoding machines. The allies’ effort breaking Enigma’s encryption was instrumental in winning World War II.
The Enigma was a electro-mechanical device that used a series of rotors to encode a key press into a new letter that was displayed using a series of lights. With each key press the rotors would rotate (similar to an odometer) to new positions. Thus typing a key multiple times would yield a different encoded letter.
An important detail of the machines design was symmetry. If you set the rotors to the same settings used to encode a message, entering the encoded text on the keyboard would then yield the original message.
To use, set the rotors to a three letter configuration and then type on the simulated keyboard. The lamps above the keyboard will light up just as the original machine. The original and encoded string are also displayed as you type. Double tap on the fields to copy and paste the text to or from email and SMS. You can share secret messages with your friends!!
Overview
V1.0 Limitations: this version uses only the I, II, III rotors and the plug-board found on the original device is not part of the simulator. However, I was careful to ensure the double stepping feature was available. I also tested my implementation against other simulators for equivalency.