Documentation
¶
Overview ¶
Package subst solves monoalphabetic substitution ciphers by hill-climbing over the 26! key space, scored by an embedded English n-gram model. It seeds from a frequency match and refines with random key-swaps under random restarts — the standard approach for this class of cipher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key [26]byte
Key is a substitution key: Key[c] is the plaintext letter index (0..25) for ciphertext letter index c. It is always a permutation of 0..25.
Click to show internal directories.
Click to hide internal directories.