Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: BitterTea on September 19, 2011, 01:34:35 PM



Title: Bitcoin encrypted/multi wallet bash script
Post by: BitterTea on September 19, 2011, 01:34:35 PM
I couldn't determine the best place to put this, so Discussion seemed like a good place.

I've created a bash script that will allow you to easily manage multiple wallets, which when not used are encrypted using GnuPG. All you need is to have Bitcoin and GnuPG installed and accessible through your path.

http://pastebin.com/W8vi6i7B

Questions, comments, concerns?


Title: Re: Bitcoin encrypted/multi wallet bash script
Post by: GideonGono on September 19, 2011, 04:25:10 PM
For some reason it's not running on my system but I noticed on line 128 you prompt for a name for the wallet and pressing enter leads to it being deleted. Seems easy to screw up by mistyping enter.


Title: Re: Bitcoin encrypted/multi wallet bash script
Post by: BitterTea on September 19, 2011, 07:18:23 PM
For some reason it's not running on my system but I noticed on line 128 you prompt for a name for the wallet and pressing enter leads to it being deleted. Seems easy to screw up by mistyping enter.

Yeah, I wasn't happy with that either, but didn't feel like displaying another menu. I'll see if I can fix that.


Title: Re: Bitcoin encrypted/multi wallet bash script
Post by: BitterTea on September 19, 2011, 09:17:54 PM
I modified the script so that you are prompted to 1) encrypt and save, 2) rename, or 3) delete an already existing wallet.dat


Title: Re: Bitcoin encrypted/multi wallet bash script
Post by: netrin on September 19, 2011, 11:50:11 PM
Wow. That's a whole lot of bash scripting. I'd never heard of srm and shred. I've been using ascii symmetric encryption, but am considering public keys with a smart card. I've replicated my encrypted wallets in git, which I highly recommend. Gpg and git help me sleep soundly at night.

gpg  -o wallet.dat wallets/mywallet1.asc
gpg -ca wallet.dat wallets/mywallet2.asc; rm wallet.dat