kc1212 / enigma-hs

Enigma machine emulator in Haskell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


About

Enigma machine emulator in Haskell.

License:MIT License


Languages

Language:Haskell 100.0%