Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: forbun on November 04, 2013, 10:40:43 PM



Title: Why did my wallet.dat's file size decrease after I encrypted it?
Post by: forbun on November 04, 2013, 10:40:43 PM
My wallet.dat's filesize was 70 KB.

I encrypted it with bitcoin-qt.

Then it was 53 KB.

How can I verify that it's encrypted properly?

Assuming I have a very secure password, it's safe for me to widely distribute my new, encrypted wallet.dat, right?


Title: Re: Why did my wallet.dat's file size decrease after I encrypted it?
Post by: Kenshin on November 04, 2013, 10:42:59 PM
My wallet.dat's filesize was 70 KB.

I encrypted it with bitcoin-qt.

Then it was 53 KB.

How can I verify that it's encrypted properly?

Assuming I have a very secure password, it's safe for me to widely distribute my new, encrypted wallet.dat, right?

You should download truecrypt and make an encryption volume. The bitcoin-qt encryption is very basic.


Title: Re: Why did my wallet.dat's file size decrease after I encrypted it?
Post by: rebuilder on November 05, 2013, 12:07:31 AM
If you have enough BTC in that wallet to worry about the encryption holding up, you should be worried about your computer getting compromised. Get a linux livecd or make a bootable usb, boot up, make a paper wallet while offline. Encrypted, if you prefer. Never let the private key touch an online system until you want to spend the coins. Brownie points for signing the transaction offline when you do decide to spend.


Title: Re: Why did my wallet.dat's file size decrease after I encrypted it?
Post by: yakov on November 05, 2013, 01:28:36 AM
Many encryption procedures I've seen compress the file first.


Title: Re: Why did my wallet.dat's file size decrease after I encrypted it?
Post by: gmaxwell on November 05, 2013, 02:15:59 AM
My wallet.dat's filesize was 70 KB.
I encrypted it with bitcoin-qt.
Then it was 53 KB.
It rebuilds the file which compacts it by removing housekeeping space that BDB kept around. It should almost always be smaller.

Quote
Assuming I have a very secure password, it's safe for me to widely distribute my new, encrypted wallet.dat, right?
I wouldn't advise it. You'll reduce your security from two factor to one factor... and the encryption doesn't protect your privacy it only prevents spending/signing. Also, the wallet will eventually go out of sync once you've used up the keypool.


Title: Re: Why did my wallet.dat's file size decrease after I encrypted it?
Post by: dserrano5 on November 05, 2013, 07:22:29 AM
You should download truecrypt and make an encryption volume. The bitcoin-qt encryption is very basic.

Citation needed. I understand it's AES with a variable number of rounds. The weakest part in the wallet's encryption is your passphrase.


Title: Re: Why did my wallet.dat's file size decrease after I encrypted it?
Post by: Come-from-Beyond on November 05, 2013, 01:15:56 PM
Many encryption procedures I've seen compress the file first.

Aye, compression reduces redundancy making it more difficult to break encrypted data.