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.

Setup

  1. Switch the branch to commandline-interface and download the source code
  2. Unzip the source code and navigate to the main directory (the one containing enigma/)
  3. Run javac Enigma.java enigma/machine/* enigma/commandline/settings/* enigma/commandline/ui/* to compile
  4. 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:
  1. Output and animation commands
  2. \outputOn \outputOff
    Turn on or off all output except the encrypted text and error messages
    \animationOn \animationOff
    Turn on or off animation mode
  3. State reporting
  4. \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
  5. Settings
  6. \settings
    Switches to settings mode (until next newline)
  7. Other
  8. \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