Bitcoin Forum
June 25, 2018, 10:27:01 AM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: Easy Wallet Encryption for Ubuntu/Linux users (HowTo)  (Read 805 times)
Offline Offline

Activity: 7
Merit: 0


View Profile WWW
July 20, 2011, 09:53:50 PM

Hi fellow bitcoiners,

everyone's telling you to encrypt your wallet these days (with good reason!) and with tools like FreeOTFE for Windows/Mac users that's easy to do. More experienced Unix/Linux users will probably resort to dm-crypt/cryptsetup encrypted volumes.

What's been missing is a less techy tutorial for the Linux user who wants an easy setup with GUI password dialogs and no need to fire up terminals every now and then.

If that sounds like you, you're the audience I wrote this HowTo for: Smiley

Hope you'll find it useful, feedback much appreciated!

Buy me a pizza! 1KAJEs6NWAs7qwHscSMkgTSavk3TT7uhKn
Hero Member
Offline Offline

Posts: 1529922421

View Profile Personal Message (Offline)

Reply with quote  #2

Report to moderator
The World's Betting Exchange

Bet with play money. Win real Bitcoin. 5BTC Prize Fund for World Cup 2018.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Offline Offline

Activity: 2534
Merit: 1004

View Profile
July 21, 2011, 05:46:56 AM

Here's my formula.  I expect it would work the same on Windows with reasonably full cygwin installed, but have not had occasion to try it.  I didn't feel like dicking with public key crypto and installing software that other people compiled and so forth.

I do this when I want to squirrel away an entire savings wallet with {n} number of coins in it.

1) bitcoind stop     (However it is done on your client.)

2) cat ~/.bitcoin/wallet.dat | openssl enc -aes-256-cbc -salt > ~/wallet.dat__whatever.enc

3) wipe .bitcoin/wallet.dat    (better than a simple 'rm' which a competent attacker can possibly re-find.)


Before I remove my wallet, I actually do do some sanity checks.  Such as:

1)  sha256 .bitcoin/wallet.dat

2)  cat ~/wallet.dat__whatever.enc | openssl enc -d -aes-256-cbc -salt | sha256


I use a pretty good password and am comfortable putting the entire encrypted wallet in a public area.

I really like Unix because it is so damn _easy_.  Really!  GUI software really does confuse the heck out of my and as often as not just does not do what I wish it to do.  After learning a few basic principles, the simple command line tools really are super easy and really flexible.  That is my opinion.

Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!