Revisiting Unicity Distance: A Channel Transmission Perspective and Its Limits
Abstract
This paper revisits the classical notion of unicity distance for substitution ciphers from an information-theoretic perspective.
We frame simple-substitution encryption as a noisy transmission channel, in which the plaintext is the message, the unknown key is the noise, and the attacker is the receiver.
Using typical sets to motivate the notion of meaningful plaintexts, we apply the channel coding theorem to blocks encrypted with independent fresh keys.
We show that a block length exceeding $H(K)/D$ permits reliable communication at the language's entropy rate using suitably chosen codebooks across many blocks.
This provides a channel transmission interpretation of the classical unicity-distance formula.
We then test how well this formula describes plaintext recovery when the message is a passage from six known novels.
More than $99\%$ of the passages are uniquely identifiable at 18 letters, well before the classical estimate of about 28.
N-gram language models, based on the frequencies of short letter sequences, predict the recovery probabilities much more closely.
In this experiment, the classical formula misses the recovery transition, while a more detailed model of the language captures it.