Bitcoin Brainwallet Checksum Calculator

function brainwallet_checksum () { (o='openssl sha256 -binary'; p='printf';($p %b "\x80";$p %s "$1"|$o)|$o|sha256sum|cut -b1-8); }
A bitcoin "brainwallet" is a secret passphrase you carry in your brain. The Bitcoin Brainwallet Exponent Calculator is the second of three functions needed to calculate a bitcoin PRIVATE key. Roughly, checksum is the first 8 hex digits of sha256(sha256(0x80+sha256(passphrase))) Note that this is a bash function, which means you have to type its name to invoke it
Sample Output
> brainwallet_checksum "correct horse battery staple"
> eb5f56e1

What Others Think

This function seems useful. I will try to use in whenever I need it in my program while providing assistance with CISI assignment services so that I can learn it better.
TaylorWatson99 · 42 weeks and 4 days ago
Incredibly great post. Really much obliged! Will peruse on this and learn our service like Tree Trimming Dallas .
Michelle08 · 34 weeks and 2 days ago
So glad I found this. For anyone worried about BTC right now, learn about the super cycles and the bear runs and bull runs. Now is the time to be dollar cost averaging to ride the next bull run that might be 1.5 to 4.65 years from now. I learned it all from these guys at who were able to buy the best equipment for their company by investing in Bitcoin.
KimCC · 23 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: