# 培根密码

**培根密码**（又称培根尼安密码）是弗朗西斯·培根爵士（Sir Francis Bacon）设计的一种隐写方法，其中字母表中的每个字母都由从一对备选符号中取出五个符号组成的序列来表示，这对符号通常写作A和B，而所得序列则通过将掩护文本的每个字母标记为属于两种微妙不同的字体之一，隐藏在一段看似无害的掩护文本中。<sup>[1](https://www.nsa.gov/portals/75/documents/about/cryptologic-heritage/historical-figures-publications/publications/pre-modern/DawnAmericanCryptology_Hatch.pdf?ver=2019-08-07-120031-313)</sup><sup> • </sup><sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup> 培根在1623年的著作《学术的进展》（*De Augmentis Scientiarum*）中描述了这个他称之为双字母密码的系统，此前曾在1605年首次提及。<sup>[1](https://www.nsa.gov/portals/75/documents/about/cryptologic-heritage/historical-figures-publications/publications/pre-modern/DawnAmericanCryptology_Hatch.pdf?ver=2019-08-07-120031-313)</sup><sup> • </sup><sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup>

| 关键事实 | 详情 |
|---|---|
| 编码方式 | 每个字母都是五个A和B的唯一序列；五个二进制位给出32种组合，多于培根所用字母表的24个字母。<sup>[4](https://cipherpad.dev/learn/bacon-cipher-explained)</sup> |
| 原始字母表 | 培根1605年的表只需要24个代码，因为I与J共用一个代码，U与V共用一个代码；现代变体则为全部26个字母分配了不同的代码。<sup>[4](https://cipherpad.dev/learn/bacon-cipher-explained)</sup> |
| 隐藏方式 | A/B序列由一段外观普通的掩护文本中两种略微不同的字体（“a字体”和“b字体”）承载。<sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup> |
| 长度代价 | 掩护文本的长度必须是隐藏消息的五倍。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup> |
| 发表 | 培根于1605年首次提及；在《学术的进展》（1623年）中连同示例和双重字母表完整描述。<sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup> |
| 历史使用 | 该密码在培根时代的外交实践中显然没有实际使用，当时依赖更简单的装置。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup> |
| 后世影响 | 关于培根在莎士比亚作品中隐藏密码消息的说法引发了长达数十年的争议，被威廉·弗里德曼和伊丽莎白·弗里德曼在《莎士比亚密码考》（1957年）中揭穿。<sup>[5](https://www.newyorker.com/magazine/1958/02/22/ciphers-everywhere)</sup> |

## 密码的工作原理

该密码有两个阶段。第一阶段，字母表中的每个字母都写成一组五个位置，每个位置持有两个字母之一。培根本人的解释——如同时代记载所引——是将字母表的所有字母“分解”为“仅两个字母”，因为“两个字母通过五个位置的换位足以产生32种差异，远多于24，即字母表的数量。”<sup>[6](https://www.gutenberg.org/cache/epub/49516/pg49516-images.html)</sup> 各组依次为aaaaa代表A，aaaab代表B，aaaba代表C，以此类推。<sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup> 用现代术语来说，这是一种五位二进制编码，A代表0，B代表1。<sup>[4](https://cipherpad.dev/learn/bacon-cipher-explained)</sup>

培根指出，两种“差异”完全不必是字母：两个不同音高的铃、两声枪响或两个火炬信号同样可以胜任，因此该代码可以在没有特定语言字符的情况下承载意义。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup>

## 将消息隐藏在掩护文本中

在培根的设计中，该密码真正的诀窍从来不是五字母代码本身，而是其隐藏方式。一连串的A和B，或交替的枪声，会引起注意，因此培根通过将字母排成两种极其微妙的字体形式——“a形”和“b形”——把代码嵌入一段普通文本中，这两种形式相似到不会引起怀疑，但又不同到足以让知情的读者分辨。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup> 掩护文本的每个字母随后代表一个A或B，五个掩护文本字母产生隐藏消息的一个字母；因此发送者必须撰写一个长度是明文五倍的掩护句子。<sup>[7](https://academic.oup.com/genetics/article/206/1/1/6064183)</sup>

培根对秘密书写提出了三项要求：书写容易而不费力，安全且无法破译，以及如果可能的话不引起怀疑。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup> 他认为自己的密码符合这些要求，并夸口说它具有“密码的完美性，即让任何东西表示任何意思”，他的示例将消息FLY（快逃）编码进看似无辜的掩护文本“Do not go till I come”（等我来了再走）中，这段掩护文本所说的与其所承载的正好相反。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup> 在实践中，这种方法很费力：细微的字体变化必须小心守护，而且该密码在培根有生之年显然没有实际的外交用途。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup>

## 《学术的进展》中的起源与描述

培根将这项发明追溯至他的青年时代。根据密码材料的伊丽莎白·韦尔斯·盖洛普版本，培根陈述他在法国宫廷期间、十六至十八岁之间发明了该方法，1605年首次提及，1623年发表，据盖洛普记载，在发表前已使用了四十四年。<sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup> 《学术的进展》给出了完整阐述，包括示例和双重字母表，培根将两种字体描述为“a字体”和“b字体”，五个一组依次为aaaaa、aaaab、aaaba等。<sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup> 培根描述了一个实用细节：该系统不需要让印刷工知晓内情，因为字母下方的一个特殊标记指示该字母应取自哪种字体，使排字工无法获得密码的线索。<sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup>

## 培根-莎士比亚争议

该密码出名更多是因为后来的热衷者声称在其中发现了什么，而非其设计本身。从迪莉娅·培根（Delia Bacon，1811–1859）开始——她可能是弗朗西斯·培根爵士及其他人创作了[莎士比亚戏剧](https://www.edgepedia.org/zh/shakespeares-plays)这一想法的始创者——到奥维尔·沃德·欧文（Orville Ward Owen），一位底特律医生，其六卷本《弗朗西斯·培根爵士的密码故事》（*Sir Francis Bacon's Cipher Story*）于1893年至1895年间出版，主张者论证培根在伊丽莎白时代的文本中嵌入了密码。<sup>[7](https://academic.oup.com/genetics/article/206/1/1/6064183)</sup> 最著名的倡导者是伊丽莎白·韦尔斯·盖洛普，一位美国教育家，其《弗朗西斯·培根爵士在其著作中发现的双字母密码》（*The Bi-literal Cypher of Sir Francis Bacon Discovered in his Works*）于1899年公布；她声称该密码存在于众多伊丽莎白时代书籍的斜体印刷中，包括1623年莎士比亚戏剧第一对开本，据称证明了培根的作者身份。<sup>[8](https://francisbaconsociety.co.uk/emblem-cipher/bacons-ciphers-re-examined/)</sup><sup> • </sup><sup>[3](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)</sup>

**弗里德曼夫妇的揭穿。** 这一主张吸引了年轻的密码学家。伊丽莎白·史密斯于1916年在河岸实验室接触到莎士比亚密码项目，在那里她遇到了威廉·弗里德曼，并于1917年与他结婚。<sup>[9](https://time.com/5928583/elizebeth-friedman-codebreaker/)</sup> 威廉·弗里德曼曾作为摄影师参与培根项目，拍摄字体的特写照片，数十年后弗里德曼夫妇提出了推翻隐藏消息理论的证据。<sup>[10](https://www.nsa.gov/portals/75/documents/resources/everyone/digital-media-center/video-audio/historical-audio/friedman-legacy/friedman-legacy-transcript.pdf)</sup> 他们1957年的著作《莎士比亚密码考》得出结论：据称隐藏在戏剧中的密码可以被操纵以产生检验者想要的任何消息；使用一种据称能解密的系统，他们诱导一段对开本文字同时产生“说真的，弗朗西斯·培根。这些戏是我写的！”及其重新排列的变体，并使用另一位主张者方法的变体，他们在《暴风雨》的一段文字中找到了斯宾塞、德雷克、戴尔、斯坦利和马洛的名字。<sup>[5](https://www.newyorker.com/magazine/1958/02/22/ciphers-everywhere)</sup> 威廉·弗里德曼自己的军事密码分析教科书警告学生不要将任何通过将培根密码应用于十六世纪文学作品而获得的所谓破译结果视为真实。<sup>[11](https://www.nsa.gov/portals/75/documents/news-features/declassified-documents/friedman-documents/publications/folder_242/41748189078749.pdf)</sup>

这一追寻有一个富有成效的副产品。美国国家安全局的官方历史指出，解决培根双字母密码之谜的努力造就了美国密码学三位重要人物，从而间接改变了现代美国历史；密码是真实的，问题在于后来学者带入其中的先入之见。<sup>[1](https://www.nsa.gov/portals/75/documents/about/cryptologic-heritage/historical-figures-publications/publications/pre-modern/DawnAmericanCryptology_Hatch.pdf?ver=2019-08-07-120031-313)</sup> 威廉·弗里德曼后来领导了在第二次世界大战前及期间破译日本“紫密”外交密码的团队，伊丽莎白·弗里德曼则因对抗走私者密码以及1943年南美洲一个纳粹间谍网的工作而被称为美国第一位女性密码分析家。<sup>[5](https://www.newyorker.com/magazine/1958/02/22/ciphers-everywhere)</sup><sup> • </sup><sup>[9](https://time.com/5928583/elizebeth-friedman-codebreaker/)</sup>

## 超越保密功能的培根密码

培根本人将密码与一个更大的理念联系起来。他认为，在所见或所闻的任何事物（包括自然）中发现的任何“差异”系统都可以承载隐藏文本，他以类似于密码分析表格字母表的形式组织了他的科学“实例表”；科学史学家、圣达菲圣约翰学院科学研究所所长彼得·佩西奇（Peter Pesic）认为，密码破译与解读自然之间的这种平行关系为后来数学与实验科学的结合奠定了基础。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup>

在现代娱乐使用中，该密码以简化形式存续。由于任何两种可区分的状态都可以承载A/B区分，谜题制作者将培根尼安消息编码在普通字母的大小写、粗体与常规文本或任何二进制视觉特征中，在线翻译器直接对五符号字母表进行编码和解码。<sup>[4](https://cipherpad.dev/learn/bacon-cipher-explained)</sup><sup> • </sup><sup>[12](https://thecipherlab.org/ciphers/bacon)</sup> 经典表格将I与J合并、U与V合并，如培根所做的那样，而现代变体则为全部26个字母分配不同的代码。<sup>[12](https://thecipherlab.org/ciphers/bacon)</sup> 作为实用的秘密通道，该方法始终如一：一种使选定文本表示任何意思的方式，代价是掩护文本长度为消息的五倍，且排版精确到足以保持两种几乎相同字体之间的区别。<sup>[2](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)</sup>

## References

1. [David A. Hatch, The Dawn of American Cryptology, 1900–1917, NSA Center for Cryptologic History](https://www.nsa.gov/portals/75/documents/about/cryptologic-heritage/historical-figures-publications/publications/pre-modern/DawnAmericanCryptology_Hatch.pdf?ver=2019-08-07-120031-313)
2. [Peter Pesic, The Clue to the Labyrinth: Francis Bacon and the Decryption of Nature, MIT Press Reader](https://thereader.mitpress.mit.edu/the-clue-to-the-labyrinth-francis-bacon-and-the-decryption-of-nature/)
3. [Elizabeth Wells Gallup, Concerning the Bi-Lateral Cypher of Francis Bacon Discovered in his Works, Project Gutenberg](https://www.gutenberg.org/files/70119/70119-h/70119-h.htm)
4. [The Bacon Cipher Explained (Baconian Cipher), CipherPad](https://cipherpad.dev/learn/bacon-cipher-explained)
5. [Ciphers Everywhere, The New Yorker, February 22, 1958](https://www.newyorker.com/magazine/1958/02/22/ciphers-everywhere)
6. [Albert F. Calvert, Bacon and Shakespeare, Project Gutenberg](https://www.gutenberg.org/cache/epub/49516/pg49516-images.html)
7. [William Friedman, Geneticist Turned Cryptographer, Genetics (Oxford Academic)](https://academic.oup.com/genetics/article/206/1/1/6064183)
8. [Bacon's Ciphers Re-examined, The Francis Bacon Society](https://francisbaconsociety.co.uk/emblem-cipher/bacons-ciphers-re-examined/)
9. [How America's 'First Female Cryptanalyst' Cracked the Code of Nazi Spies in World War II, TIME](https://time.com/5928583/elizebeth-friedman-codebreaker/)
10. [The Friedman Legacy transcript, NSA](https://www.nsa.gov/portals/75/documents/resources/everyone/digital-media-center/video-audio/historical-audio/friedman-legacy/friedman-legacy-transcript.pdf)
11. [Military Cryptanalytics, Part I, Friedman and Callimahos, NSA declassified documents](https://www.nsa.gov/portals/75/documents/news-features/declassified-documents/friedman-documents/publications/folder_242/41748189078749.pdf)
12. [Bacon Cipher — A/B Encoding, Hidden Messages, Examples, and How to Break It, The Cipher Lab](https://thecipherlab.org/ciphers/bacon)

---
*Initially written Oct 15, 2026*

Topic: 艺术与文化 › 视觉艺术与设计 › 平面设计与字体排印 › Typography and typefaces

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/bacons-cipher

English original: https://www.edgepedia.org/bacons-cipher
