enigma 0.1.1

A library for simulating the Enigma machines.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

enigma - Enigma machine simulation library

enigma is a library for simulating the Enigma machines written in D. It aims to reproduce the existent variations of machines and mechanisms and be implemented using the mathematical representation of the Enigma.

https://en.wikipedia.org/wiki/Enigma_machine

Example

void main()
{
    import std.stdio;
    import enigma;

    auto m3 = EnigmaM3(entryWheelABC, rotorIII, rotorII, rotorI, reflectorB, "AAA");
    foreach (c; readln!dstring)
    {
        write(m3(c));
    }
}
Authors:
  • Kazuya Takahashi
Dependencies:
none
Versions:
0.3.2 2021-Mar-01
0.3.1 2016-Oct-08
0.3.0 2016-Mar-13
0.2.0 2016-Mar-07
0.1.2 2016-Mar-04
Show all 8 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 79 downloads total

Score:
0.6
Short URL:
enigma.dub.pm