This is a virtual Enigma Machine coded in Python, its only the first version but it is a working version nonetheless
Welcome to the Enigma Simulator! This program is like a digital version of the famous WWII encryption machine used to send secret messages. It turns your message into a secret codeโand only someone with the same settings can turn it back!
It encrypts (hides) your message so that only someone with the same settings can decrypt (unhide) it again.
You can use it to:
- Send a message to a friend
- Practice cryptography
- See how people used to hide secrets before the internet!
- Type your message (only UPPERCASE letters, like "HELLO").
- Pick your rotor starting positions (3 numbers from 0โ25).
- Choose plugboard pairs (letter swaps like AโZ, BโY, etc.).
That's it! The program scrambles your message using:
- ROTORS: Like spinning wheels that change each letter.
- REFLECTOR: Bounces the message back.
- PLUGBOARD: Swaps certain letters before/after the machine.
When you run the program with the same settings again, it will decrypt your message!
- Run the file:
enigma_simulator_with_plugboard.py - Enter your message (UPPERCASE only):
HELLO - Enter starting rotor positions (example):
Rotor I: 0
Rotor II: 0
Rotor III: 0 - Enter plugboard pairs (optional):
AZ BY CX
(This swaps AโZ, BโY, CโX)
The program will give you the encrypted message!
To decrypt it: just run the program again and enter the same settings.
If you encrypt "HELLO" with:
- Rotor positions:
0 0 0 - Plugboard:
AZ BY
You might get something like:
GJMPX
To get "HELLO" back, just use the same settings and input GJMPX.
- Always remember your settings (write them down).
- Use ALL CAPS for your message.
- Plugboard is optional, but adds more security!
Have fun encrypting and decrypting like a real WWII codebreaker! ๐ต๏ธโโ๏ธ๐