General Monoalphabetic Substitution
Replace each letter with another letter, in any order. There are 26! keys, but letter counts still reveal the message.
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.