TeachMeBitcoin

Is 12 Words Safe

From TeachMeBitcoin, the free encyclopedia ⏱️ 4 min read

Is 12 Words Enough? The Math Behind Seed Phrase Security

When setting up a new non-custodial wallet, you are usually prompted to write down either a 12-word or a 24-word seed phrase.

Many beginners assume that a 12-word seed phrase must be "half as secure" as a 24-word seed phrase, and worry that hackers using powerful supercomputers can brute-force (guess) their 12-word phrase.

Let's dive into the jaw-dropping mathematics of cryptography to prove why a 12-word seed phrase is so secure that it will survive until the end of our universe.


📐 Entropy: 12 Words vs 24 Words

The strength of a seed phrase is measured in bits of entropy (randomness):

To understand what these numbers actually mean, let's look at the total number of unique combinations for each size:

To put these numbers into physical perspective, the total number of atoms in the entire observable universe is estimated to be roughly $10^{80}$. A 24-word seed phrase has almost as many combinations as there are atoms in the universe!


🖥️ Brute-Forcing with a Network Supercomputer

Let's assume an attacker builds a supercomputer that harnesses the combined power of the entire global Bitcoin mining network.

This is the largest computer network ever assembled by humanity, performing an astronomical number of mathematical calculations every second:

Furthermore, according to the BIP 39 specification, a computer cannot simply check a seed phrase instantly. It must perform 2,048 rounds of HMAC-SHA512 hashing (using a key stretching algorithm called PBKDF2) to convert the words into a binary seed key.

Using these parameters, we can calculate how many seeds our global network-scale supercomputer can generate and check every second:


⏳ How Long to Crack a 12-Word Seed?

If our global supercomputer runs 24/7 trying to guess your randomly generated 12-word seed phrase, we calculate the time required to run through just half of the combinations (the statistical average to crack a password):

Let's compare this mathematical reality against our universe:

$$\text{Time to Crack 12 Words} \approx 800 \times \text{The Age of the Universe!}$$

Even if an attacker owned a supercomputer as large as the Bitcoin network itself, it would take them 800 times longer than the entire history of our universe to guess your 12-word phrase.

┌──────────────────────────────────────┐
│  🌌 AGE OF THE UNIVERSE:             │
│  ███ 13.8 Billion Years              │
└──────────────────────────────────────┘
┌──────────────────────────────────────┐
│  ⏳ TIME TO CRACK A 12-WORD SEED:    │
│  ██████████████████████████████████  │
│  11,174 Billion Years (800x longer!) │
└──────────────────────────────────────┘

🏆 Conclusion: The Verdict

While a 24-word seed phrase ($2^{256}$) is mathematically more secure, in practical terms you are simply moving from impossible to even more impossible.

Both sizes are completely unbreakable by any computational force known to science.

Why 12 Words Can Actually Be Better:

  1. Easier to Record: You only have to write down and verify 12 words instead of 24, minimizing the chance of writing down a wrong word or letter.
  2. Smaller Physical Footprint: It is easier to stamp 12 words onto a compact steel backup plate.
  3. Memorable Option: If you want to memorize your seed phrase as a temporary, emergency backup, memorizing 12 words is significantly easier and more reliable than memorizing 24 words.

Rest assured, if your 12-word seed phrase is generated randomly on an offline hardware device, your coins are absolutely secure.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!