A popular idea: keep the right words but write them in the wrong order. Swap the pairs, write the list backwards, or run it through a keyed column transposition you remember. The arithmetic looks reassuring. Twelve words can be ordered 12! ways, about 479 million, and twenty-four words 24! ways, about 6.2 × 1023. This page explains why those numbers protect you far less than they suggest.
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.
A reordered list is still a seed
Reordering changes where the words sit and leaves the words themselves alone. Each one is still on the BIP-39 English list of 2,048 words, and a card with twelve or twenty-four of them reads as a seed phrase to anyone who has seen one. A shuffle does nothing to the first look. Hiding the words themselves is a separate job, covered in substitution ciphers on a seed and why a public cipher hides but doesn't encrypt.
So the only question is what happens after someone recognises the list, and that depends on how many orders they have to try.
How a keyed column transposition works
Here is the strongest of the common methods, worked on the public example seed:
pizza educate fat kiss domain venue kingdom raise split step copper tree (this phrase is public: never use it for real funds)
- Pick a keyword with no repeated letters. We use LAMP, which gives four columns.
- Write the words into rows of four:
| L | A | M | P |
|---|---|---|---|
| pizza | educate | fat | kiss |
| domain | venue | kingdom | raise |
| split | step | copper | tree |
- Read the columns top to bottom, in the alphabetical order of the key letters: A, L, M, P.
The result is educate venue step pizza domain split fat kingdom copper kiss raise tree. To restore, you reverse the steps with the same keyword.
How many orders you can actually remember
The 479 million figure counts every possible order. You can't remember an arbitrary one of those; if you could, you could remember the seed. What you remember is a rule, and there are very few rules. Counted for a 12-word phrase:
| Rule | Orders it can produce |
|---|---|
| Write it backwards | 1 |
| Start at a different word and wrap round | 11 |
| Swap one pair of words | 66 |
| Up to two swaps | 4,423 (btcrecover's count) |
| Column transposition, 2 to 8 columns, any key | 46,232 |
The last row is the sum of 2! + 3! + … + 8!: every possible key order for every key length up to eight letters. Most real keys are dictionary words, which use only a small share of those orders. Add the rows together and allow a factor of a few for variants (columns read bottom to top, two rules combined) and you get a few hundred thousand orders at most. That is under one part in a thousand of 12!.
An attacker doesn't have to guess your rule. They try every rule in the table.
Why even 12! is small for a computer
The checksum does most of the work. BIP-39 sets the checksum length at the entropy length divided by 32, so a 12-word phrase carries 4 bits of checksum in its last word and a 24-word phrase carries 8. A wrong order behaves like a random list, and a random list passes a 4-bit check one time in 16. Both reorderings of the example seed above, the transposition and the plain reversal, fail the checksum. A wallet would refuse them, and a list that fails its own checksum is a hint to anyone who tries it that the order has been changed.
Run the numbers for the whole of 12!:
- 479,001,600 orders, each needing one SHA-256 to check. In our test, one core of an ordinary desktop checked about 98,000 orders a second. That is 81 minutes on one core, or about 7 minutes on twelve.
- 479,001,600 ÷ 16 = 29,937,600 survivors. Each goes through PBKDF2 with 2,048 rounds of HMAC-SHA512, as BIP-39 specifies. That took 1.7 ms per candidate on one core: about 14 hours, or a little over an hour on twelve cores, before the address derivation.
- Each survivor's first address is compared with one known address of the wallet.
So all of 12!, with no assumptions about your rule, is an overnight job on one desktop. The table of memorable rules, about 3,000 checksum survivors at 1.7 ms each, takes around five seconds.
24! is different: 6.2 × 1023 orders, and 2.4 × 1021 of them pass the 8-bit check. Nobody searches that. It doesn't help you, because you can't remember an arbitrary order of 24 words either. Your rule is in the table above, and the table is small for 24 words too.
What the attacker needs besides the words is the same as in brute-forcing a seed from partial knowledge: an address, an extended public key or a wallet file to recognise the right answer. Keep those away from the words.
What the recovery tools already do
btcrecover is a free, open-source recovery tool, and its documentation covers both cases.
- Known words, unknown order. The tokenlist feature in
seedrecover.py"can be used to unscramble seed phrases where the words of the passphrase are available, but the ordering is unknown." The docs say this is "currently only really practical with a 12 word seed phrase, though is also usable for a 24 word seed where the position of 12 of the words is known." Words whose position you know can be pinned with positional anchors, which shrinks the search. - Swapped pairs. Since April 2023 the
--transform-wordswapsoption tests a given number of swapped pairs. The docs give 4,423 possibilities for two swaps in a 12-word phrase and 291,919 for three, and their worked example finds a 12-word seed with two swapped pairs "within a few seconds." The page opens with the case it was written for: someone swapped words "in an attempt to add a layer of security to their seed backup, but has since forgotten exactly which words they swapped."
A reordering rule is one more thing you can forget, and the people who lose coins to it are usually the owners.
If you ever need one of these tools for your own wallet, run it on an offline machine that you wipe afterwards. Never type a seed into a website or an online tool.
What to do instead
- Treat a reordered list as a plain seed. It stops someone who glances at the card and gives up. It does nothing against someone who knows what they're looking at.
- Add a BIP-39 passphrase and keep it apart from the words. Every passphrase opens a valid wallet and there is no checksum on it, so a search has nothing to filter on. Choosing and storing one is the subject of the 25th word.
- If you want the words themselves unrecognisable, use a cipher from the vault and a disguise, and still use the passphrase.
- If you want pieces in different places, use a scheme built for it, such as SLIP-39 or Codex32 or XOR splitting. Splitting a single list by hand gives too much away.
- If you reorder anyway, write the rule down where your heirs will find it, and test the restore before you fund the wallet.
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: Mnemonic code for generating deterministic keys: checksum length (ENT/32 bits: 4 bits for 12 words, 8 for 24), the 2,048-word list, PBKDF2-HMAC-SHA512 with 2,048 iterations, and the passphrase.
- BIP-39 English word list.
- Token Lists, Password Lists and BIP39 Seed Phrases, btcrecover documentation (page added 2020-05-01): unscrambling known words of unknown order, 12 words practical, 24 with 12 positions known.
- The Tokenlist File, btcrecover documentation: positional anchors.
- Checking for Swapped Seed Words, btcrecover documentation, added 2023-04-29 with
--transform-wordswaps: the swap counts and the worked examples. - seedrecover.py quick start, btcrecover documentation: what the tool needs (a wallet file, an xpub, or an address).
- Our own test: Python 3, one core,
hashlibSHA-256 checksum over 200,000 orders of the public example seed (6.3% passed, against an expected 6.25%), andhashlib.pbkdf2_hmacfor the per-candidate cost. Counts in the tables are our arithmetic: 12! = 479,001,600, 24! ≈ 6.2 × 1023, 2! + … + 8! = 46,232.