Enigma Machine emulator in C
 
 
Go to file
Flavien Henrion 1f573372d4 coincoingit migration 2021-10-21 14:54:02 +02:00
Makefile DOC + makefile 2020-01-01 12:50:06 +01:00
README.md Update README.md 2020-06-23 16:39:36 +02:00
enigma.h better output 2020-01-17 09:33:35 +01:00
enigma_conf.c coincoingit migration 2021-10-21 14:54:02 +02:00
enigma_enc.c better output 2020-01-17 09:33:35 +01:00
main.c better output 2020-01-17 09:33:35 +01:00

README.md

Enigma Machine

Personnal project

Implementation of a enigma machine in C.

USAGE :

compilation : launch make command
first arg : configuration
seconde arg : message

configuration :

3 rotors among 8 to put in the machine, order matters and rotors cannot be used twice.
1 reflector : B or C.
3 starting positions configured by letter (A-Z).
0 to 13 wires that connect 2 letters, a letter can only be connected once.

configuration syntax :

rotor1-rotor2-rotor3-reflector-position1-position2-position3-wire1_letter1/wire1_letter2-wire2_letter1/wire2_letter2...
exemple :
./enigma_machine "4-2-7-C-Z-R-W-A/Z-B/R-S/W" "TEST DE CHIFFREMENT" -> NHROUCQFEYKQLNZXS
./enigma_machine "4-2-7-C-Z-R-W-A/Z-B/R-S/W" "NHROUCQFEYKQLNZXS" -> TESTDECHIFFREMENT