Expand description
Misc utilities for Enigma
Structs§
- Conversion
Error - Error converting types
Enums§
- Letter
- Represent a letter in the enigma machine. Essentially a u8 mod 26.
Constants§
- DEFAULT_
ROTOR_ NUM - Number of rotors to use by default
- M3
- Number of rotors for the M3 Enigma
- M4
- Number of rotors for the M4 Enigma
- UNIT_
LETTER_ MAP - A
LetterMapping
where all letters map to themselves
Functions§
- string_
to_ inv_ letter_ map - Creates a
LetterMapping
from a string that is the exact opposite ofstring_to_letter_map
- string_
to_ letter_ map - Creates a
LetterMapping
from a string wheremapping[i] = string[i]
Type Aliases§
- Letter
Mapping - Represents the internal wiring of an Enigma component. Essentially a substitution cipher where the substitution of a letter is the value at its index