Jump to content

Bacon's cipher

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 216.56.3.178 (talk) at 13:15, 24 October 2016 (Removed odd usage of italics in "To encode a message each letter of the plaintext is replaced by a group of five of the letters 'A' or 'B'."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Bacon's cipher or the Baconian cipher is a method of steganography (a method of hiding a secret message as opposed to just a cipher) devised by Francis Bacon in 1605. A message is concealed in the presentation of text, rather than its content.

Cipher details

To encode a message, each letter of the plaintext is replaced by a group of five of the letters 'A' or 'B'. This replacement is a binary encoding and is done according to the alphabet of the Baconian cipher, shown below.

a  AAAAA       g    AABBA       n  ABBAA       t    BAABA
b  AAAAB       h    AABBB       o  ABBAB       u-v  BAABB
c  AAABA       i-j  ABAAA       p  ABBBA       w    BABAA
d  AAABB       k    ABAAB       q  ABBBB       x    BABAB
e  AABAA       l    ABABA       r  BAAAA       y    BABBA
f  AABAB       m    ABABB       s  BAAAB       z    BABBB

Note: A second version of Bacon's cipher uses a unique code for each letter. In other words, I and J each has its own pattern.

The writer must make use of two different typefaces for this cipher. After preparing a false message with the same number of letters as all of the As and Bs in the real, secret message, two typefaces are chosen, one to represent As and the other Bs. Then each letter of the false message must be presented in the appropriate typeface, according to whether it stands for an A or a B.[1]

To decode the message, the reverse method is applied. Each "typeface 1" letter in the false message is replaced with an A and each "typeface 2" letter is replaced with a B. The Baconian alphabet is then used to recover the original message.

Any method of writing the message that allows two distinct representations for each character can be used for the Bacon Cipher. Bacon himself prepared a Biliteral Alphabet[2] for handwritten capital and small letters with each having two alternative forms, one to be used as A and the other as B. This was published as an illustrated plate in his De Augmentis Scientiarum (The Advancement of Learning).

Because any message of the right length can be used to carry the encoding, the secret message is effectively hidden in plain sight. The false message can be on any topic and thus can distract a person seeking to find the real message.

Baconian cipher example

The word 'steganography', encoded with padding, where text in italics represents "typeface 2" and standard text represents "typeface 1":

To encode a message each letter of the plaintext is replaced by a group of five of the letters 'A' or 'B'.

Bacon and Shakespeare

Some people have suggested that the plays attributed to William Shakespeare were in fact written by Francis Bacon, and that the published plays contain enciphered messages to that effect. Both Ignatius L. Donnelly and Elizabeth Wells Gallup attempted to find such messages by looking for the use of Bacon's cipher in early printed editions of the plays.

However, American cryptologists William and Elizebeth Friedman refuted the claims that the works of Shakespeare contain hidden ciphers that disclose Bacon's or any other candidate's secret authorship in their The Shakespeare Ciphers Examined (1957).

References

  1. ^ Helen Fouché Gaines, Cryptanalysis: a Study of Ciphers and Their Solutions (1989), page 6]
  2. ^ Biliteral can mean: "written in two different scripts", Oxford English Dictionary

Further reading