kc1212/enigma-hs
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Enigma machine emulator written in Haskell to practice and for fun.
To build and run:
stack build
echo "IDPHRIUSHJ" | stack exec enigma-hs
feel free to change the settings in Main.hs
Enigma Process
1. Validate input
2. Rotate wheels
3. Pass through plugboard
4. Pass through right-hand wheel
5. Pass through middle wheel
6. Pass through left-hand wheel
7. Pass through reflector
8. Pass through left-hand wheel
9. Pass through middle wheel
10. Pass through right-hand wheel
11. Pass through plugboard