![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The correspondence between Mary Queen of Scots and Anthony Babington was encrypted with a substitution cipher. This type of cipher substitutes each letter of the alphabet with a different letter, or with a number, or (as in Mary's case) with a symbol. For example, the cipher below substitutes each letter of the standard alphabet with the letter listed in the given cipher alphabet (here based on the arrangement of letters on a keyboard).
So the word 'hello' would be encrypted as 'ITSSG'. However, the ninth-century Arab codebreaker al-Kindi realised that there is an effective way of cracking the substitution cipher. Every letter in a language appears with a certain average frequency, so that in English, for example, 'e' accounts for 13% of all letters, whereas 'z' accounts for less than 1%. Whichever letter is substituted for the original letter will take on the original frequency. So by analysing the frequency of the different letters in a code you can work out which letter each substituted letter represents. Walsingham's codebreaker used this technique to decipher the letters of Mary Queen of Scots. The letters were used as evidence against her, and she was found guilty of treason and executed in 1587.
|