- Clone the repository:
git clone https://github.com/shashankp28/enigma-machine.git
- To build
The Enigma Machine
run the following command:
make
-
You can modify the
PlugBoard
pairing fromenigma.conf
file -
You can modify the rotors used (select distinct 3 of 5) in
enigma.conf
file -
You can modify the initial position of the rotors in
enigma.conf
file -
You can modify the Reflection rotor in
enigma.conf
file -
To Encrypt using
The Enigma Machine
run the following command:
./bin/enigma enigma.conf input.txt output.txt
- To Decrypt using
The Enigma Machine
switch the input and output files:
./bin/enigma enigma.conf output.txt input.txt
- Encryption/Decryption Rate:
~ 7.7 MB/s