A javascript enigma machine solver
Demo: https://shakyjake.github.io/js-enigma/
Usage:
const Machina = new Enigma(Rotors, Reflector[, Options]); Machina.Solve('My Secret Message');
Rotors
is a collection of 2D arrays in the following format:
[
["A", "B", "C", "D"...],
["E", "Y", "H", "Q"...]
]
Reflector
is a single array, in the same format as a rotor
Options
is an object with the following possible properties:
Match
-[string]
a string to matchMatchMode
-[string]
either "StartsWith" or "Contains"Callback
-[function]
what to do with the results