Commandline Enigma Machine Emulator
The commandline Enigma Emulator does exactly what it sounds like. It's an implementation of the Enigma encryption using a Java commandline application.- Brief description of the Enigma machine and setting it up
- Description of the code (as generated by Javadoc)
- Actual code
- John Rizkalla's (my) Github page
Setup
- Switch the branch to commandline-interface and download the source code
- Unzip the source code and navigate to the main directory (the one containing enigma/)
- Run javac Enigma.java enigma/machine/* enigma/commandline/settings/* enigma/commandline/ui/* to compile
- Run java Enigma to start it
Interface
To encrypt something, just type it and press enter (return).Commands start with \ so anything following the \ until the next space is part of the command.
The commands are:
- Output and animation commands
- \outputOn \outputOff
- Turn on or off all output except the encrypted text and error messages
- \animationOn \animationOff
- Turn on or off animation mode
- State reporting
- \rotor1 \rotor2 \rotor3 \reflector \plugboard
- Print the part of the machine specified on a newline. If 2 commands for the same part come after each other, the state is printed twice.
- \state
- Prints all the parts
- Settings
- \settings
- Switches to settings mode (until next newline)
- Other
- \exit
- Exits the program
- \help
- Prints a help message
- \info
- Prints information about the emulator and the Enigma Machine
- \names
- Prints the names of all rotors and reflectors
Last updated: August 2015 by John Rizkalla