Skip to content

CyberDuck79/enigma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Enigma Machine in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published