What is a Beale Cipher?
A Beale cipher (more precisely a book cipher) uses
a shared text as a codebook. Each word in the text is assigned a sequential
number starting at 1. To represent a letter, the sender picks any word whose
first letter matches and writes down that word's number.
Because many words can start with the same letter, the same plaintext letter
can produce different cipher numbers each time — making frequency analysis
much harder.
The original and most famous Beale Papers legend tells of buried treasure
whose location was encoded using exactly this technique — with the
Declaration of Independence as the key text for one of
the three ciphers, which was eventually cracked.
Version 5: Patriotic Theme 🇺🇸
🔴 Digit Pile-Up
When you click Encode, each letter's cipher number is
split into individual digit particles. These digits rain down one by one,
landing in a tight pile at the letter's home position while the original
letter fades away. Letters and digits cycle through patriotic
red,
blue, and
silver-white
— the colours of the flag.
💥 Explosion Cloud
Once every digit for every letter has arrived, the entire canvas
explodes. Every digit particle blasts outward at high
speed, filling the screen with a dense, patriotic number cloud against
the deep navy background. Enable
Digit echoes (Environment card) for a streaking effect.
⭐ Per-Letter Reveal
Press Assemble (or Space). Each digit steers
back toward its assigned home position within its letter's pile. Once
all digits for a given letter have returned, the original
letter materialises with a bright scale-pop burst and a blue
spotlight in the ticker. Letters reveal in a cascade until the full word
reappears.
How to Encode
- Type your message in the Encode tab (A–Z, 30 chars max).
- Try INDEPENDENCE, LIBERTY, FREEDOM, or WE THE PEOPLE.
- Click Encode. Watch the patriotic digit rain and pile-up.
- After the explosion, copy the cipher numbers — they only decode correctly with this key text.
How to Decode
- Paste cipher numbers into the Decode tab (space- or comma-separated).
- Click Decode. Digit particles scatter across the canvas.
- Press Assemble and watch each letter materialise, one at a time.
The Historical Connection
The real Beale Papers (published 1885) described three encoded
messages allegedly left by Thomas Jefferson Beale. The second cipher,
describing the location of the treasure, was cracked using the
Declaration of Independence as the key text — the first letter of each
numbered word spelled out the message. The other two remain unsolved
to this day.
Key-Text Used
The Declaration of Independence (1776) — one of the most
important documents in American history, and the authentic key text of
the original Beale Cipher.
Explore the Key-Text Index (right panel) to see exactly which word
numbers in the Declaration map to each letter of the alphabet.