The following encrypted message from Alice to Bob is intercepted by Eve.
\begin{align*}
\amp\mathtt{tddsztmdsakswanawxwsaflgsl}\cspace\mathtt{jxxshtjlksgfxsgyso}\cspace\\
\amp\mathtt{av}\cspace\mathtt{sl}\cspace\mathtt{xsuxdztxsaf}\cspace\mathtt{tualsl}\cspace\mathtt{xstimaltfastfgl}\cspace\mathtt{xjsl}\cspace\\
\amp\mathtt{gkxso}\cspace\mathtt{gsafsl}\cspace\mathtt{xajsgofsdtfzmtzxstjxsvtddxwsvxdlk}\\
\amp\mathtt{safsgmjksztmdksl}\cspace\mathtt{xsl}\cspace\mathtt{ajwstddsl}\cspace\mathtt{xkxswayyxjsyjge}\\
\amp\mathtt{sxtv}\cspace\mathtt{sgl}\cspace\mathtt{xjsafsdtfzmtzxsvmklgekstfwsdtok}
\end{align*}
Eve knows that Alice and Bob are using a Caesar cipher. Decipher the message for Eve.
Solution.
Counting the number of occurrences of the characters in the cipher text we get:
| \(\cspace\) | \(\mathtt{a}\) | \(\mathtt{d}\) | \(\mathtt{e}\) | \(\mathtt{f}\) | \(\mathtt{g}\) | \(\mathtt{h}\) | \(\mathtt{i}\) | \(\mathtt{j}\) | \(\mathtt{k}\) | \(\mathtt{l}\) | \(\mathtt{m}\) | \(\mathtt{n}\) | \(\mathtt{o}\) | \(\mathtt{s}\) | \(\mathtt{t}\) | \(\mathtt{u}\) | \(\mathtt{v}\) | \(\mathtt{w}\) | \(\mathtt{x}\) | \(\mathtt{y}\) | \(\mathtt{z}\) |
| \({15}\) | \({ 15 }\) | \({ 13 }\) | \({2}\) | \({ 12 }\) | \({ 11 }\) | \({1}\) | \({1}\) | \({ 10 }\) | \({ 10 }\) | \({ 16 }\) | \({7}\) | \({1}\) | \({4}\) | \({ 40 }\) | \({ 19 }\) | \({2}\) | \({5}\) | \({7}\) | \({ 22 }\) | \({4}\) | \({ 7}\) |
According to the data in Figure 11.4.2 the character space which we represent by \(\cspace\) is the most common character in English language texts. Since \(\mathtt{s}\) is the character in the cipher text with the highest number of occurrences, Eve tries decrypting the cipher text with the Caesar cipher that replaces \(\cspace\) with \(\mathtt{s}\text{.}\)
| \(x\) | \(\cspace\) | \(\mathtt{a}\) | \(\mathtt{b}\) | \(\mathtt{c}\) | \(\mathtt{d}\) | \(\mathtt{e}\) | \(\mathtt{f}\) | \(\mathtt{g}\) | \(\mathtt{h}\) | \(\mathtt{i}\) | \(\mathtt{j}\) | \(\mathtt{k}\) | \(\mathtt{l}\) | \(\mathtt{m}\) | \(\mathtt{n}\) | \(\mathtt{o}\) | \(\mathtt{p}\) | \(\mathtt{q}\) | \(\mathtt{r}\) | \(\mathtt{s}\) | \(\mathtt{t}\) | \(\mathtt{u}\) | \(\mathtt{v}\) | \(\mathtt{w}\) | \(\mathtt{x}\) | \(\mathtt{y}\) | \(\mathtt{z}\) |
| \(J(x)\) | \(\mathtt{s}\) | \(\mathtt{t}\) | \(\mathtt{u}\) | \(\mathtt{v}\) | \(\mathtt{w}\) | \(\mathtt{x}\) | \(\mathtt{y}\) | \(\mathtt{z}\) | \(\cspace\) | \(\mathtt{a}\) | \(\mathtt{b}\) | \(\mathtt{c}\) | \(\mathtt{d}\) | \(\mathtt{e}\) | \(\mathtt{f}\) | \(\mathtt{g}\) | \(\mathtt{h}\) | \(\mathtt{i}\) | \(\mathtt{j}\) | \(\mathtt{k}\) | \(\mathtt{l}\) | \(\mathtt{m}\) | \(\mathtt{n}\) | \(\mathtt{o}\) | \(\mathtt{p}\) | \(\mathtt{q}\) | \(\mathtt{r}\) |
When decrypting Eve reads the table from bottom to top. So Eve decrypts \(\mathtt{t}\) to \(\mathtt{a}\text{,}\) \(\mathtt{d}\) to \(\mathtt{l}\text{,}\) \(\mathtt{s}\) to \(\cspace\text{,}\) and so on. Eve obtains the following message :
1
from the English translation of Julius Caesar’s De Bello Gallico (The Gallic Wars) by W. A. McDevitte and W. S. Bohn.
\begin{align*}
\amp\mathtt{all}\cspace\mathtt{gaul}\cspace\mathtt{is}\cspace\mathtt{divided}\cspace\mathtt{into}\cspace\mathtt{three}\cspace\mathtt{parts}\cspace\mathtt{one}\cspace\mathtt{of}\cspace\\
\amp\mathtt{which}\cspace\mathtt{the}\cspace\mathtt{belgae}\cspace\mathtt{inhabit}\cspace\mathtt{the}\cspace\mathtt{aquitani}\cspace\mathtt{another}\\
\amp\mathtt{}\cspace\mathtt{those}\cspace\mathtt{who}\cspace\mathtt{in}\cspace\mathtt{their}\cspace\mathtt{own}\cspace\mathtt{language}\cspace\mathtt{are}\cspace\mathtt{called}\cspace\\
\amp\mathtt{celts}\cspace\mathtt{in}\cspace\mathtt{ours}\cspace\mathtt{gauls}\cspace\mathtt{the}\cspace\mathtt{third}\cspace\mathtt{all}\cspace\mathtt{these}\cspace\mathtt{differ}\\
\amp\mathtt{}\cspace\mathtt{from}\cspace\mathtt{each}\cspace\mathtt{other}\cspace\mathtt{in}\cspace\mathtt{language}\cspace\mathtt{customs}\cspace\mathtt{and}\cspace\mathtt{laws}
\end{align*}


