When I want to create a wallet with BitcoinCore by going File->Create wallet, it asks me to choose a passphrase for it. Over the mouths exploring Bitcoin I learned that it is very unsafe to use custom passwords since they can be easily cracked (if I'm not mistaken, this type of wallet is called Brain wallets). I'm assuming that the passphrase will be used as a seed for a random generator in order to create private key for that wallet, and all this seems pretty unsafe to me.
Also I noticed that there is a checkbox saying Encrypt wallet. Does this mean if I don't make this check, my wallet will be unencrypted and therefore unsafe?


No, not all passphrases are used to generate the private keys for a wallet. Only specifically brain wallets do that.

Passphrases in actual wallet software like Bitcoin Core and Electrum are used to encrypt the wallet. The private keys are still randomly and securely generated. Your passphrase is only used as an encryption key so that the private keys are stored encrypted on disk.

It is safe and recommended that you encrypt your wallet with a passphrase. If you choose to not encrypt your wallet, then the private keys will be stored unencrypted on disk and any person or malware with access to your computer can steal your private keys and thus your Bitcoin.

| improve this answer | |
  • Thank you a lot Andrew, but I'm a bit confused. How is a private key generated if it doesn't use a passphrase as a seed? Is there any article on this subject you would recommend? – ddavi031 Aug 8 at 18:21
  • 1
    @ddavi031 Computers can generate random numbers. See en.wikipedia.org/wiki/Random_number_generation – Pieter Wuille Aug 8 at 19:22
  • Thanks, I'm familiar with that, but I was wondering which algorithms BitcoinCore is using specifically to generate a private key? I can ask this as a new question if you think that is more appropriate and I'm off topic here. – ddavi031 Aug 8 at 19:34
  • 3
    I was trying to address your confusion. Private keys are generated randomly; there is no seed or passphrase involved. If you want to know how Bitcoin Core exactly generates randomness, that would be a different question. – Pieter Wuille Aug 8 at 19:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.