BACONIAN CIPHER
Baconian cipher, five symbols per letter.
Each letter becomes 5 symbols of “A/B” (or 0/1); you can also decode ciphertext back to text. A classic steganography trick and CTF favorite.
Most tools process data locally; see this page for details
What is this?
The Baconian cipher encodes each letter as 5 bits (shown as A/B or 0/1), e.g. A=AAAAA, B=AAAAB. Encoding converts A–Z and ignores other characters; decoding reads groups of five (I/J and U/V share a code, per the traditional table).
FAQ
Why are I and J the same?
The traditional Baconian alphabet has 24 letters, so I/J and U/V share a code — a historical quirk and a common CTF trap.
Is anything uploaded?
No. Everything runs in your browser; nothing is sent to a server.
示例与注意事项Example & notes
一个例子A worked example
把一句话编成培根密码:A 就是 a、B 就是 b,空格和标点可以忽略;26 个字母对应一串 0/1,既能加壳也能解回明文,适合玩猜谜与简单加密练习。Encode a sentence in Baconian cipher: A is a, B is b, spaces and punctuation can be ignored; the 26 letters map to a string of 0s and 1s that can be both encoded and decoded — handy for puzzles and light cryptography practice.
注意事项Things to watch
- 这是 19 世纪的方案,现代密码学里毫无安全性,只能当趣味与教学用,别用它保护真实密码。This is a 19th-century scheme with no security value today — treat it as a puzzle and a teaching aid, never protect a real password with it.
- 原始版本只有 24 个字母(I 与 J 共用一个、U 与 V 共用一个),本页按 26 字母版本处理,解密遇到 24 位分组时注意区分。The original had 24 letters (I/J and U/V shared); this page uses the 26-letter version, so mind the difference when decrypting 24-bit groups.
- 解码时允许省略字母只留分组中的 0/1,但只含 a/b 的普通单词容易被误判成密文。When decoding you may keep only the 0/1 groups, but ordinary words made only of a and b can be mistaken for ciphertext.
相关问答More Q&A
培根密码怎么用?How do I use the Bacon cipher?
明文编码:把每个字母换成 5 位 0/1;密文解码:输入 0/1 串或整段只有 a/b 的文本,工具按 5 位一组还原成字母。To encode, replace every letter with five 0/1 bits; to decode, paste a 0/1 string or a text made only of a and b, and it reads five bits at a time back into letters.
和二进制编码有什么关系?How does it relate to binary encoding?
培根密码是 26 字母版的 5 位二进制编码:a/b 两种符号正好对应 0/1 两种比特,只是早期用两个字母代替数字来写。Baconian is a 5-bit binary encoding for 26 letters: the two symbols a and b stand for the two bits, originally written as letters before binary notation was convenient.