Skip to content

shakyjake/js-enigma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Enigma

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 match
  • MatchMode - [string] either "StartsWith" or "Contains"
  • Callback - [function] what to do with the results

Questions / Comments / Complaints?

What do you want? I wrote it in a day

About

Javascript enigma machine solver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published