---
title: A book cipher with your own book
url: https://bitcoinseedbook.com/book-cipher-with-your-own-book/
description: Page, line and word pointers into a printed book you own. How it works, why the book is the whole secret, and what edition drift does to it.
published: 2026-07-23
updated: 2026-07-23
section: B. Ciphers and splitting
tags: Cipher, BIP39, Passphrase
---

# A book cipher with your own book

A book cipher writes down where a word is instead of the word itself. Anyone with the same book can read it
back, so the secret is which book you used. Our own ciphers work the same way with a book everyone can
download. This page covers the private version: a printed book on your shelf, and what it takes to make
pointers into it survive ten years.

**Hiding is not encrypting.** The ciphers are public and a seed phrase carries its own checksum, so a
list someone recognises as a seed can be tried against every cipher in minutes. Add a BIP-39
passphrase to the wallet and keep it somewhere else.

## How it works

Each pointer is three numbers: page, line, word. `112-14-3` means page 112, line 14, third word. To
recover, you open the same book, count, and read.

The method is old. The best-known example is the second Beale cipher, published in an 1885
pamphlet. Its numbers point to words in the Declaration of Independence, and the first letter of each word
is a letter of the message. Number 73 gives "hold", so the letter is H. The other two Beale ciphers have
never been read, and researchers doubt there is anything in them to read.

## Most seed words aren't in the book

A seed phrase is twelve or twenty-four words from the BIP-39 list of 2,048. To point at a word, the book
has to contain it, in exactly that form. Ordinary books mostly don't.

We counted. The text of the Declaration of Independence in the National Archives transcript runs 1,323
words. It contains 112 of the 2,048 BIP-39 words, about 5 percent, and none of the twelve in our example:

> pizza educate fat kiss domain venue kingdom raise split step copper tree (this phrase is public: never use it for real funds)

A full novel does better and still falls short. *Pride and Prejudice*, the Project Gutenberg text of the
1894 George Allen edition, is 128,570 words long and contains 963 BIP-39 words, 47 percent. Four of the
example's twelve are there: `fat`, `kiss`, `kingdom` and `step`. There's no `pizza`, no `copper`, and
no `tree` (only `trees`).

So with an ordinary book you can't point at whole words. You have two ways round it.

### Point at letters

BIP-39 chose its words so that the first four letters identify each one. You only need four letter
pointers per word, three for the 103 words that are three letters long. Each pointer is page, line,
letter: `112-14-27` is the 27th letter of line 14.

The example seed takes 47 letter pointers. A 24-word seed takes about 95. Every one is a chance to
miscount. Get one letter wrong and the BIP-39 checksum will tell you something is wrong, but not which
letter. A few wrong letters can be searched for ([what partial knowledge costs](https://bitcoinseedbook.com/brute-forcing-a-seed-from-partial-knowledge/)).
A dozen can't.

This is the version that keeps the whole secret in the book. Lose the book and the pointers are noise.

### Point at word-list indexes

Each BIP-39 word is a number from 0 to 2,047, its place in the list. Instead of finding the word in the
book, you take a number from the book and add it to the index, wrapping at 2,048. This is the same
arithmetic as the [one-time pad](https://bitcoinseedbook.com/one-time-pad-vs-public-book-cipher/), with a passage of text standing in
for the dice. The old name for it is a running key.

You need a fixed rule for turning text into numbers. One that works: take three letters, count `a` as 0
through `z` as 25, and compute 676 × first + 26 × second + third, then subtract 2,048 until the result is
under 2,048.

1. Key letters: the first three of the Declaration, `whe`. That's 22, 7 and 4.
2. Key number: 676 × 22 + 26 × 7 + 4 = 15,058. Less 7 × 2,048 = 722.
3. Seed word: `pizza` is index 1,325.
4. Sum: 1,325 + 722 = 2,047. Write down 2,047 (or word 2,047, `zoo`).

To recover, subtract 722 and add 2,048 if the result is negative.

The trade-off: you note one starting point instead of 47 pointers, and the output is twelve plain
numbers. In exchange you have a rule to remember and arithmetic to get right twelve times. And the key is
English text, which is far from random. Shannon's proof of the pad needs a random key, so this inherits
none of the pad's guarantee.

## The whole secret is which book

Either way, the pointers are only as secret as the identity of the book. That's a short list.

Someone who finds a page of `112-14-3` triples knows at once it's a book cipher. Then they look at your
shelf. Two hundred books is two hundred guesses, fewer than the 9,132 ciphers on this site, and the seed's
checksum confirms the right one. The books you've owned longest, the ones by the bed, and the one with a
cracked spine on page 112 go first.

So the pointers need the same care as our numbers: keep them where they look like something else
([disguises](https://bitcoinseedbook.com/disguise-patterns-that-survive-a-second-look/), [hiding places](https://bitcoinseedbook.com/hide-a-seed-in-the-house/)),
and keep the name of the book in your head.

## Edition drift

"Page 112, line 14" only means something in one typesetting. A reprint, a new edition, a paperback, a
book-club printing or a large-print copy can move every line. An e-book is worse: EPUB is meant to reflow
to fit the screen, so a page there depends on the device and the font size.

Counting rules drift too. In the National Archives transcript, "instituted" is word 115 of the
Declaration only if you count "self-evident" as two words and split "Happiness.--That" at the dash. Count
either one as a single word and pointer 115 lands somewhere else.

Write the edition down where you'd write the cipher name: in your head, or with the passphrase, never
with the pointers.

1. **ISBN.** It names the title, edition and format, so the paperback and the e-book have different
   numbers. An unchanged reprint by the same publisher keeps the same ISBN. The ISBN doesn't tell
   printings apart.
2. **The printing line** from the copyright page, and the year.
3. **Your counting rules.** Does a heading count as a line? A hyphenated word as one word or two? Does the
   page count start at the first printed number?

## The book wears out, or goes

A paperback used as a key gets opened at the same pages for years. Spines crack, pages come loose. Then
there's the house fire, the move, the relative who clears your shelves to a charity shop. If your copy
goes, you need another of the same printing, and the ISBN alone won't guarantee you get one.

Buy two copies of the same printing, at the same time, from the same stack. Store the second somewhere
else. Never write in either one: a pencil mark on page 112 tells a searcher which book and which page.

## Our ciphers are a public book

The [ciphers on this site](https://bitcoinseedbook.com/cyphers/) are a book cipher with the book published. Each is a table that
gives every BIP-39 word a number between 5432 and 7479. There are 9,132 of them, one for each day of
1770 to 1784 and 2000 to 2009, each with a name like Red Crowded Ape. The secret is which one you chose.
The [procedure](https://bitcoinseedbook.com/#procedure) takes 15 minutes.

That fixes most of what goes wrong with a private book:

- No edition drift. The tables are signed files, and you can [check the signature](https://bitcoinseedbook.com/verify-a-tome-signature/).
- Every word is in the book, because the book is the word list.
- One number per word, with nothing to count.
- You can't lose the book. Copies sit on mirrors and in [torrents](https://bitcoinseedbook.com/help-the-vault-survive/).

The secrecy is no better. A choice among 9,132 is about 13 bits, and the checksum lets someone test every
table in minutes ([why](https://bitcoinseedbook.com/hiding-is-not-encrypting/)). A shelf of 200 books is under 8 bits; counting
pointers by hand is slower, but the list is shorter. For a second layer of hiding,
see [substitution ciphers](https://bitcoinseedbook.com/substitution-ciphers-on-a-seed/) and [reordering the words](https://bitcoinseedbook.com/reordering-seed-words/).
For a lock, use a [BIP-39 passphrase](https://bitcoinseedbook.com/bip39-passphrase-25th-word/).

*We will never ask for a seed word or a passphrase. Never type one into this site or any tool it links to.*

## Sources


- [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) and its [English word list](https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt): 2,048 words, indexes 0 to 2,047 (`pizza` 1,325, `zoo` 2,047), the first four letters identify each word, 103 words of three letters.
- National Archives, [Declaration of Independence: a transcription](https://www.archives.gov/founding-docs/declaration-transcript). Our count: 1,323 words from "When in the Course" to "sacred Honor", 112 BIP-39 words; word 73 is "hold".
- Jane Austen, *Pride and Prejudice*, [Project Gutenberg eBook 1342](https://www.gutenberg.org/ebooks/1342) (the 1894 George Allen edition). Our count: 128,570 words, 963 BIP-39 words, exact forms only.
- Simon Singh, [The Beale treasure ciphers](https://simonsingh.net/media/articles/maths-and-science/the-beale-treasure-ciphers), *The Guardian*, 1999: the 1885 pamphlet, the Declaration as key, first letters of numbered words, ciphers 1 and 3 unread.
- Richard Wassmer, [Beale Cipher 1 and Cipher 3: Numbers With No Messages](https://eprint.iacr.org/2024/695), IACR Cryptology ePrint Archive 2024/695: the case that ciphers 1 and 3 have no message.
- International ISBN Agency, [ISBN assignment](https://www.isbn-international.org/node/88): reprints keep the original ISBN when publisher, text and binding are unchanged; a new format or a substantial change of text needs a new one.
- W3C, [EPUB 3.3](https://www.w3.org/TR/epub-33/), section 1.2: EPUB publications "are intended to reflow to fit the available screen space".
- C. E. Shannon, "Communication Theory of Secrecy Systems", *Bell System Technical Journal* 28(4), 1949. [doi:10.1002/j.1538-7305.1949.tb00928.x](https://doi.org/10.1002/j.1538-7305.1949.tb00928.x). Perfect secrecy needs a random key.
