Page 1 of 1

How to Secure Wallet File?

Posted: Fri Mar 15, 2013 7:12 am
by Sage
I'm using Mac Os. Currently my wallet.dat file is stored unencrypted in the applications support directory.

is there anyway I can specify where the wallet.dat file is stored, so that I can place it in an encrypted file vault?

If that's not possible, what's the current best way to secure the wallet file on a Mac OS?

Thanks

Re: How to Secure Wallet File?

Posted: Sun Mar 17, 2013 12:01 pm
by phelix
Sage wrote:I'm using Mac Os. Currently my wallet.dat file is stored unencrypted in the applications support directory.

is there anyway I can specify where the wallet.dat file is stored, so that I can place it in an encrypted file vault?

If that's not possible, what's the current best way to secure the wallet file on a Mac OS?

Thanks
no for now you will have to do it manually. use 7z for example

Re: How to Secure Wallet File?

Posted: Mon May 27, 2013 4:59 pm
by cassini
I keep my wallet.dat in a password-protected OSX "sparseimage", see below. In this setup these are the steps for using namecoin_osx64:

1.) Double-click the sparseimage
2.) Type-in the correct password
---> The sparseimage opens (or "mounts") and it looks like an external harddisk or usb device. During this time the wallet.dat is unprotected, of course. That's why I do not run any software other than standard browsers or email clients while the wallet.dat is visible.
3.) Now you can use your namecoin_osx64 client, e.g.
./namecoin_osx64 -datadir=/Volumes/nmcsparseimage name_history d/xyzzy
On my Mac I moved all the namecoin files to that sparseimage, that's why my command line looks rather odd:
/Volumes/nmcsparseimage/namecoin_osx64 -datadir=/Volumes/nmcsparseimage/Namecoin -conf=/Volumes/nmcsparseimage/Namecoin/bitcoin.conf
but you can keep the binary and the config file etc. in the standard locations if you like.
4.) After you're done, stop the namecoin client, e.g.
./namecoin_osx64 -datadir=/Volumes/nmcsparseimage stop
5.) Wait until the process has stopped (check with Activity Monitor, or use the Linux command "top")
6.) Close the sparseimage (or eject, or unmount).



This is how to create an OSX sparseimage (could be slightly different in Mountain Lion):
1.) Open "Disk Utility"
2.) New Image
3.) Save As:, e.g. nmcsparseimage.sparseimage, and choose a folder where to store the image on your harddisk
4.) Name: I recommend you use the same name (without the ".sparseimage", e.g. nmcsparseimage)
5.) Before you can select the correct size, you need to select the format:
Format: Mac OS Extended case-sensitive (but not "journaled")
6.) select size, custom (I recommend 2 GB minimum, if you want keep everything in it including those huge db and blkindex files)
7.) Encryption: 128-bit oder 256-bit
8.) Partitions: No partition
9.) Image Format: sparse disk image
10.) Create
11.) Choose a password, and unselect "Keep password in the keychain of your Mac".