← GlossarySecurity
What Is Entropy in Crypto? Why Randomness Protects Your Keys
In cryptography, entropy is a measure of unpredictability, expressed in bits; a wallet's keys and seed phrase are only as hard to guess as the entropy of the random source that created them.
Key takeaways
- More bits of entropy means exponentially more possibilities for an attacker to try.
- A 12-word BIP-39 phrase carries 128 bits of entropy and a 24-word phrase 256 bits.
- Keys must come from a secure random source, not from a human-chosen pattern.
- Predictable keys have been stolen quickly in the past.
What entropy means
Entropy is a measure of how unpredictable something is. In security it is counted in bits: a secret with n bits of entropy has 2 to the power n equally likely values. A 128-bit secret has about 3.4 times 10 to the 38 possibilities, far too many for any attacker to test. What matters is not how long a secret looks but how unpredictable it really is.
Where wallets use it
A private key or seed is generated from random bits. BIP-39 describes starting from 128 to 256 bits of initial entropy and adding a checksum to build the word list: 128 bits give a 12-word phrase, and 256 bits give 24 words. The words are a readable way to write that randomness down. The strength is in the bits, not in the words being unusual.
Why quality matters
The randomness must come from a secure source, such as the operating system's cryptographic random number generator. A key derived from a poorly chosen source, such as a short phrase, a date, a simple pattern or a weak random function, has far less real entropy than its length suggests. Attackers search these small spaces quickly, and there are cases of wallets generated from weak randomness being emptied within minutes of being funded.
Practical advice
Use wallets and devices that generate keys with a secure random source and avoid creating keys yourself from memorable text. Do not reuse a seed from an online generator. Longer is not helpful if the source is poor, and a good source is not helped by adding patterns. Protect the result as you would any other secret: keep the backup offline, and never type it into a website.
Example
A seed made from 128 truly random bits has 2^128 possibilities. A 'random-looking' key made from the current time in seconds has at most a few billion possibilities, which an attacker can test in moments.
Formula Possible values = 2^(bits of entropy)
Put it into practice
Let the wallet generate your keys
Do not invent your own keys or recovery data. Scrypt Wallet generates the key for each coin for you; back it up offline and never reuse it elsewhere.
Create a free wallet Get Scrypt for AndroidSources and verification
Last reviewed 2026-10-02 by the Scrypt Wallet team. The factual claims on this page, and where each comes from:
- BIP-39 starts from 128 to 256 bits of initial entropy to build a mnemonic of 12 to 24 words. [1]
- Entropy is a measure of unpredictability or information content. [2]
Sources
- BIP-39: Mnemonic code for generating deterministic keys · bitcoin/bips on GitHub · primary source
- Entropy (information theory) · Wikipedia · secondary source
Primary sources are protocol papers, specifications, source code or a project's own documentation; secondary sources are wikis and explainers. We checked each claim against the source text on the review date. Found an error? Tell us and we will correct it.
Frequently asked questions
Is a longer phrase always safer?
Only if the randomness behind it is real. A long phrase chosen by a person can have little entropy.
Can I make my own seed with dice?
Dice can supply real entropy if done carefully, but mistakes in the conversion are easy. A reputable wallet's generator is simpler.
How much entropy is enough?
128 bits is considered strong against brute-force guessing; 256 bits gives a larger margin.
Written by the Scrypt Wallet team · Updated 2026-10-02. General education, not financial, tax or legal advice.