Option to encrypt wallet from the start #1665

issue weex opened this issue on August 9, 2012
  1. weex commented at 6:48 AM on August 9, 2012: none

    The first time the program is run, it creates a wallet.dat file that is written unencrypted to disk. Later encryption of this wallet file, may leave plaintext fragments on the storage device due to details of the operation of the filesystem or storage device. One workaround is to create the wallet.dat file on another system perhaps using a Live CD, encrypt it, and copy this encrypted wallet over to the desired system.

    It would be better if the first time the program is run, it asks if the user wishes to encrypt their wallet, then asks for the passphrase, and from the start writes only the encrypted version to disk.

  2. luke-jr commented at 6:53 AM on August 9, 2012: member

    As long as you don't use that first address it makes, you're safe.

  3. weex commented at 6:53 AM on August 9, 2012: none

    I thought it made 100 at first run.

  4. laanwj commented at 6:54 AM on August 9, 2012: member

    Yes it makes sense. I know it was discussed when encrypted wallets were implemented. @luke-jr: It still may use that for change, right?

  5. luke-jr commented at 6:56 AM on August 9, 2012: member

    When you encrypt for the first time, it flags any unallocated addresses so they don't get used. Change never goes to used addresses, either these or user-visible ones.

  6. weex commented at 7:11 AM on August 9, 2012: none

    If it is desirable to harden default user configuration against theft, making the proposed change would help. In the meantime, the documentation should be updated with a recommendation to encrypt before doing anything else.

  7. stevenph commented at 7:20 AM on August 9, 2012: none

    Rather than a live cd you can also work from an encrypted volume using lvm or truecrypt.

  8. laanwj commented at 3:09 PM on August 9, 2012: member

    Something like #1666 would have to be implemented first. Currently there are not enough recovery options to encourage encryption by default.

  9. laanwj closed this on Nov 12, 2013

  10. suprnurd referenced this in commit c3bc06bbf8 on Dec 5, 2017
  11. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me