How the Baconian cipher works
Every letter is given a five-symbol code built from A and B:
A AAAAA H AABBB O ABBBA V BABAB
B AAAAB I ABAAA P ABBBB W BABBA
C AAABA J ABAAB Q BAAAA X BABBB
D AAABB K ABABA R BAAAB Y BBAAA
E AABAA L ABABB S BAABA Z BBAAB
F AABAB M ABBAA T BAABB
G AABBA N ABBAB U BABAA
(This is the modern 26-letter table.) If you read A as 0 and B as 1, these are simply the numbers 0 to 25 in five-digit binary. Bacon had the idea in 1605, a long time before anyone had a use for binary arithmetic.
The clever part: hiding it
A row of As and Bs is not much of a secret. Bacon’s insight was that A and B don’t have to be letters at all. They can be any two things that can be told apart.
His own suggestion was two slightly different typefaces. Take an innocent sentence, the “cover text”, and print each of its letters in typeface A or typeface B according to the hidden message. To a casual reader it is an ordinary sentence. To someone who knows, every five letters of it spell one letter of the real message.
For example, using capitals for B and lower case for A, the cover text hello World hides AAAAA BAAAA, or the letters A and Q.
This makes it a method of steganography, hiding the existence of a message, rather than cryptography, which scrambles a message everyone can see is there. Bacon wrote that with it one could make “anything signify anything”.
History
Francis Bacon, the philosopher and statesman, described the cipher in The Advancement of Learning in 1605 and gave the full method in the Latin edition of 1623.
In the late nineteenth century the cipher became central to a theory that Bacon was the true author of Shakespeare’s plays and had hidden his claim in the typefaces of the First Folio. The wealthy enthusiast George Fabyan funded a team at Riverbank Laboratories in Illinois to search for it. They found nothing convincing, but two of the staff, William and Elizebeth Friedman, became fascinated by codes in general. They went on to become America’s foremost cryptanalysts, and in 1957 published the book that carefully took the Bacon–Shakespeare cipher theories apart.
Questions people ask
How do I decode a Baconian cipher?
Split the As and Bs into groups of five and look each group up. AAAAA is A, AAAAB is B, AAABA is C, and so on, counting up in binary with A as 0 and B as 1.
What is the difference between the 24 and 26 letter versions?
In Bacon's day I and J were one letter, as were U and V, so his alphabet had 24 codes. The modern version gives every one of the 26 letters its own code. From the letter J onward the two versions disagree, so if a message decodes to nonsense, try the other.
Where are the As and Bs in a real Baconian message?
Usually disguised. They might be two typefaces, upper and lower case, bold and plain, or any two kinds of thing. If you see a text with an odd mixture of two styles, write A for one and B for the other, then decode in groups of five. This tool also accepts 0 and 1.