Module mini_enigma::utils
source · Expand description
Misc utilities for Enigma
Structs§
- Error converting types
Enums§
- Represent a letter in the enigma machine. Essentially a u8 mod 26.
Constants§
- A
LetterMapping
where all letters map to themselves
Functions§
- Creates a
LetterMapping
from a string that is the exact opposite ofstring_to_letter_map
- Creates a
LetterMapping
from a string wheremapping[i] = string[i]
Type Aliases§
- Represents the internal wiring of an Enigma component. Essentially a substitution cipher where the substitution of a letter is the value at its index