Skip to content

A simple program for encoding/decoding enigma messages.

Notifications You must be signed in to change notification settings

DEFENDORe/enigma-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enigma Machine C++

A simple library and CLI program to encode and decode text using the enigma cipher.

How an enigma machine works: https://www.youtube.com/watch?v=ybkkiGtJmkM

Rotors: I, II, III, IV, V, VI, VII, VIII

Rotor Position: A-Z, 0-25

Rotor Ring Setting: A-Z, 0-25

Reflectors: B, C


Build:

make

Library: /bin/enigma.a

Run CLI:

./bin/enigma-cli

Examples

./bin/enigma-cli -r C -w I,A,A,II,A,A,III,A,A -p ab,cd
./bin/enigma-cli -t "text to encipher/decipher" -r B -w I,0,0,II,0,0,III,0,0 -p ab,cd,ef
echo "text to encipher/decipher" | ./bin/enigma-cli -r C -w I,0,0,II,0,0,III,0,0 -p ab,cd

About

A simple program for encoding/decoding enigma messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published