Brainwallets: why a key made from a password gets emptied in seconds
A brainwallet is a Bitcoin key made from something you can remember: a password, a phrase, a line from a song. The idea was popular around 2011–2014 and sounds clever: nothing to write down, the key lives in your head. In practice it is one of the fastest ways to lose bitcoins.
How a brainwallet works
The phrase is run through SHA-256, and the 256-bit result is used directly as the private key. The word “password”, for example, always gives the same key and the same address, for everyone, forever. Anyone who thinks of the same phrase has the same key.
Why they are found so fast
Thieves do not guess numbers; they guess phrases, and phrases are exactly what people are predictable at:
- dictionaries in many languages, and their combinations;
- billions of real passwords from leaked databases;
- song lyrics, quotes, film lines, Bible verses, Wikipedia titles;
- every trick people use to look clever: digits instead of letters, a year at the end, words written backwards.
Turning a phrase into an address is fast: a single graphics card checks millions of phrases per second. The resulting addresses go onto a watch list, and bots monitor the network. When coins land on any of them, a bot sends them away, often within seconds, sometimes before the incoming payment is even confirmed.
You can see it on our page keys everyone guesses: the keys made from “password”, “bitcoin” or “satoshi nakamoto” have long transaction histories. Coins arrive and are taken again.
How strong would a phrase have to be?
A randomly generated key has 128-bit security (see can someone guess my private key). A strong password made up by a person has perhaps 40 to 60 bits. Even four random dictionary words (the Diceware method, about 51 bits) give only about 3.7·1015 possibilities, which a few thousand graphics cards would go through within weeks.
To reach 128 bits you would need about ten random Diceware words, or 12 random words from a 2048-word list. That is simply a seed phrase — only generated by a machine instead of chosen by a person, which is the whole point.
“But mine is unique”
Many brainwallets were made from phrases their owners considered original, and they were found anyway. What feels unique to one person is typical for millions, and attackers have years of computing time to go through combinations. Some tools tried to help with deliberately slow hashing and a salt (WarpWallet, for example). That makes each guess more expensive, but it does not turn a phrase chosen by a person into a random one. The problem is not the length or the language; the problem is that a human chose it.
What to do
- Do not create brainwallets. Use a wallet that generates a random seed phrase.
- If you still have coins on an address made from a phrase, move them to a new wallet now, while they are still there.
- The optional passphrase (the “25th word”) in modern wallets is not a brainwallet: it is added on top of a random seed phrase, so the randomness stays.