A mimic of the WWII Enigma Machine
First, create a terminal/cmd window at the folder
Then, run the program simply by calling the Java Virtual Machine:
Type the following to the terminal/cmd:
java Enigma
Afterward, the program will ask you the text to encrypt/decrypt.
Type in your text to encryot/decrypt in a single line (upper case only!) and hit enter.
Enter text to encrypt/decrypt:
...Enter some text...
The program will then display the encrypted/decrypted text as a response.
Here is an example of the execution:
In Setup.java, write down the configuration you want to make for the machine:
plugboard - a space separated list of paired upper case letters, each indicating a wired connection on the plugboard between the two letters of the pair.
rotor_set - a space separated list of 4 Names, indicating the rotor/reflector setups.
From left to right indicate the name of: rotor 1, rotor 2, rotor 3, reflector.
Available names for the rotors:
IIIIIIIVV
Available names for the reflector:
UKW-AUKW-BUKW-C
rotor_pos - a space separated list of 3 upper case letters, indicating the initial position of the rotors
From left to right indicate the initial position of: rotor 1, rotor 2, rotor 3.
Finally, after you saved the new setup file, open your terminal/cmd and compile the new setup:
javac Setup.java
What is a Enigma machine?
The Enigma machine is a cipher device developed and used in the early- to mid-20th century to protect commercial, diplomatic, and military communication. It was employed extensively by Nazi Germany during World War II, in all branches of the German military.
Here is an image of the real world Enigma M3 machine used by Nazis Germany in WWII

