<p>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).</p>

<p>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.</p>

CC BY-SA 3.0
2015-11-02T10:26:45.830Z
2015-11-02T10:26:45.830Z
Marat Arguinbaev
<p>Suppose your wallet.dat file is copied to the wild.  </p>

<p>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.</p>

<p>Ideally, even if: </p>

<p>i) one's passphrase is simple; <strong>and</strong><br>
ii) the wallet.dat file is copied...</p>

<p>...an adversary would have to employ giant computing power to try to unlock it.  </p>

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

<p>related question: <a href="https://bitcoin.stackexchange.com/questions/1713/how-does-the-bitcoin-client-encrypt-the-wallet-dat-file">How does the Bitcoin client encrypt the wallet.dat file?</a></p>

CC BY-SA 3.0
2015-11-02T06:52:31.910Z
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
CC BY-SA 3.0
2015-11-02T15:44:50.420Z
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
CC BY-SA 3.0
2015-11-02T15:45:25.297Z
Oh, and that's the cipher size?  256bits?  So that's what I'm after then.  Many many thanks!
linhares
<encryption><passphrase><wallet-security>
What is the largest password/passphrase size for a wallet.dat file?
linhares
# What is the largest password/passphrase size for a wallet.dat file?

(Asked by: username_0 on 2015-11-02)

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?](https://bitcoin.stackexchange.com/questions/1713/how-does-the-bitcoin-client-encrypt-the-wallet-dat-file)

**Tags:** encryption, passphrase, wallet-security

> **Comments:**
> **username_1**: 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.  
> **username_0**: 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?  
> **username_0**: Oh, and that's the cipher size?  256bits?  So that's what I'm after then.  Many many thanks!  

---

## 1 answers

### Answer by username_2 on 2015-11-02. Score: 2

So just like username_1 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.


---

