Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boardfish/com3190-assignment

A simulation of the Enigma I machine in Erlang.
https://github.com/boardfish/com3190-assignment

enigma enigma-machine enigma-simulator erlang

Last synced: about 2 months ago
JSON representation

A simulation of the Enigma I machine in Erlang.

Awesome Lists containing this project

README

        

Erl-nigma
=====

A simulation of the Enigma I in Erlang.

Build
-----

$ rebar3 escriptize

Run
---

$ ./_build/default/bin/enigma "Text you want to encrypt here"

Command line arguments aren't implemented, so you'll want to change the arguments passed to the `main` method.

Supply:

- a reflector name (`"B"`)
- a triple of rotors (`"II", "I", "III"`)
- a triple of ring settings (`{26, 23, 4}` = Z, W, D Ringstellungen)
- a list of plugboard pairs (`[{$E, $Z}...]`)
- an initial setting (`{$A, $G, $I}`)