Suppose your wallet.dat file is copied to the wild.

I am working on methods for creating very strong (512bits, hopefully much more) passphrases that would make it unfeasible to either use rainbow tables or to try brute force it.

Ideally, even if:

i) one's passphrase is simple; and
ii) the wallet.dat file is copied...

...an adversary would have to employ giant computing power to try to unlock it.

Since I couldn't get it from the documentation, I wonder if anyone knows how large (in, say, bytes) a passphrase/password can be.

related question: How does the Bitcoin client encrypt the wallet.dat file?

  • 2
    I don't think it makes sense to bother with a 512 bit passphrase, given that the actual encryption is done with a 256 bit cipher.
    – Nick ODell
    Commented Nov 2, 2015 at 6:52
  • It seems to me that does make sense to at least use it in creating the final passphrase (which can of course be smaller); because of so much outstanding Hw/GPU sw deployed for partial/full sha256 collisions. Doesn't it?
    – linhares
    Commented Nov 2, 2015 at 15:44
  • Oh, and that's the cipher size? 256bits? So that's what I'm after then. Many many thanks!
    – linhares
    Commented Nov 2, 2015 at 15:45

1 Answer 1


So just like Nick said, If the encryption is done using 256 bits then creating a passphrase which is 512 bits long would be the same as creating a passphrase which is 256 bits long (as long as its random).

You should look into brainwallets as they provide a way to create strong passwords which are also easily memorable since all you have to memorize is a 3 line poem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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