A simple Enigma machine encryption, showing step-by-step simulator. The model used is Wehrmacht Machine I, five rotors I-V and three reflectors A, B and C. The code does not use any external library.
Instruction: complile it using Python. Any input must use integer or CAPITALIZED string. Since I do not make any syntax error input, please input it as instructed:
- Program asks input for the RIGHT rotor. Input an integer as instructed.
- Program asks input for the MIDDLE rotor. Input an integer as instructed.
- Program asks input for the LEFT rotor. Input an integer as instructed.
- Program asks input for the REFLECTOR. Input an integer as instructed.
- Program asks for the positions of the rotors. Input 3 integers as instructed.
- Program asks for the plugboards. Input it in the type of CAPITALIZED string. Example: "AT GX RK". If you do not want any, simply press Enter.
- Program asks for the text you want to encrypt. Input it in the type of CAPITALIZED string.
- Output
Feel free to message me if you have any questions.