General Monoalphabetic Substitution
An arbitrary permutation of the alphabet: 26! keys, and letter frequency still hands it over.
Monoalphabeticdemo
Objectives
Build a substitution key as a permutation of the alphabet.
Compare the keyspace against a brute-force budget.
Explain why a fixed letter-to-letter map leaks frequency no matter how large the key is.