darksignalroom

Using letter frequency in a substitution cipher

Count symbols to pick a first guess in a substitution cipher and see how a short message can skew the counts.

A fixed substitution preserves counts. If E appears six times in the original message, its replacement symbol also appears six times. Common English letters such as E can give you a first guess. A larger sample gives you more evidence about which letters tend to appear often. UCLA's lecture notes on frequency analysis

Count the symbols and test a word

△○○□ △○ ◇□ □⊕○ □⊗○○

Skip the spaces when counting. ○ occurs six times, □ four times, △ twice, and each of the other three symbols once. Try ○ = E. If the fourth word, □⊕○, is THE, then □ = T and the first word reads _EET. Try MEET and see whether the second word also reads ME. The full example reads MEET ME AT THE TREE.

Consider how short the message is

In NOON SOON, O appears four times, N three times, and S once. E never appears. If you assign E to the most frequent symbol after encrypting that phrase, your first guess will be wrong.

Use the frequency table in symbol cipher practice to choose a symbol to investigate. Then check its position in other words and look for repeated-letter patterns that support or contradict your guess.