Hongmu Notes

🅰️ bacon password tool

Enter the English letters to get the five-digit A/B combination, and enter the five-digit combination to restore the letters; you can choose the classic 24-letter version and the modern 26-letter version, and 0 and 1 can also be recognized as usual.
100% Browser local processing 0 Data upload

🅰️ Five-bit A/B encoding and decoding

💡 Instructions for use

  • When encoding, convert each letter into a serial number from zero to twenty-five, and then write it into a five-digit combination: first the high digit and then the low digit, A or 0 represents zero, and B or 1 represents one.
  • When decoding, read symbols in groups of five digits and convert them back to serial numbers to get letters; spaces and newlines will be automatically ignored.
  • The classic 24-letter version combines I with J and U with V, so the combination of the same letter in the two versions may be different. When decoding, you need to choose the version that is consistent with the encoding.
  • The result area provides both grouped and continuous forms, and a comparison table of letters and combinations to facilitate manual checking.

🅰️ How did the five-digit combination come about?

The alphabet has up to 26 letters, how many binary bits are needed to distinguish them? Four digits only have 16 types, which is not enough; five digits have 32 types, which is enough and slightly surplus. So each letter is represented by five digits, from 00000 to 11001, corresponding to A to Z. This is the origin of the five-digit combination.

The result area is equipped with a comparison table of letters and combinations, allowing you to directly check the writing of any letter.

🎭 Why is it called a method of hiding information?

The most ingenious thing about Bacon's cipher is that the symbols can be exchanged for any two visible forms: normal and italic, uppercase and lowercase, bold and thin. In this way, another sentence can be hidden in a seemingly ordinary text, and the receiver only needs to read the font differences in groups of five to restore it. This is a kind of steganography rather than simple encryption.

When making puzzles, you can use this tool to get the combination string first, and then rewrite the font of the text according to the combination.

🔒 Data is not uploaded

Encoding and decoding are all completed locally in the browser. It only involves serial number conversion and string splicing. There is no need to call the server interface and no registration or login is required. The input content only exists on the current page and will be cleared when refreshing; when needed, use the copy or download button to save it as plain text. It can also be used in a disconnected environment.

The page is also available offline, suitable for checking assignments when there is no network.

🔗 All keywords and tutorials

Keywords page of the tool10a

Return to tool home page

❓ FAQ

How many letters can a five-digit combination represent??
There are a maximum of 32 cases, so 26 letters can each occupy a combination, leaving six combinations unused.
Why are the results of the two versions different??
Because the classic version combines I with J, and U with V, the total number of letters is only 24. The numbers of subsequent letters are moved forward as a whole, and the combinations are naturally different.
Can I enter numbers??
When decoding, you can use 0 and 1 to replace A and B, and the tool will automatically recognize it; when encoding, please fill in the English letters.
Will spaces and line breaks affect decoding??
No. Spaces and line breaks are ignored, and only groups of five characters are grouped in symbolic order, so they can be formatted at will.
Which one is earlier, Bacon code or Morse code??
Morse code appeared later and used long and short signals with variable lengths; Bacon code used two symbols of fixed length, which was an earlier binary coding idea.