Bitcoin Forum
September 22, 2024, 05:07:36 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin encrypted/multi wallet bash script  (Read 979 times)
BitterTea (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 252



View Profile
September 19, 2011, 01:34:35 PM
Last edit: September 19, 2011, 01:47:55 PM by BitterTea
 #1

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?
GideonGono
Hero Member
*****
Offline Offline

Activity: 2114
Merit: 501


View Profile WWW
September 19, 2011, 04:25:10 PM
 #2

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.
BitterTea (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 252



View Profile
September 19, 2011, 07:18:23 PM
 #3

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.
BitterTea (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 252



View Profile
September 19, 2011, 09:17:54 PM
 #4

I modified the script so that you are prompted to 1) encrypt and save, 2) rename, or 3) delete an already existing wallet.dat
netrin
Sr. Member
****
Offline Offline

Activity: 322
Merit: 251


FirstBits: 168Bc


View Profile
September 19, 2011, 11:50:11 PM
 #5

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

Greenlandic tupilak. Hand carved, traditional cursed bone figures. Sorry, polar bear, walrus and human remains not available for export.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!