<blockquote>
<p>can this wallet_key be extracted from wallet.dat</p>
</blockquote>
<p>No, to serve any purpose, an encryption key must be kept separate from the encrypted material.</p>

CC BY-SA 4.0
2024-03-06T09:11:14.660Z
2024-03-06T09:11:14.660Z
RedGrittyBrick
<p>According to this link(<a href="https://bitcointalk.org/index.php?topic=5331322.0" rel="nofollow noreferrer">https://bitcointalk.org/index.php?topic=5331322.0</a>), the initialized vector and aes key (wallet_key) can be derived by hashing the password with sha512, but can this wallet_key be extracted from wallet.dat(So,public info?)? Also, is this wallet_key the same as the value extracted with bitcoin2john.py?                                      hash512 = hashlib.pbkdf2_hmac('sha512', password, salt, iterationcount) wallet_key = hash512[0:32] iv = hash512[32:48]</p>

<wallet.dat>
Is it possible to extract wallet_key (aes key) for encrypted master key from wallet.dat?
mazedat
# Is it possible to extract wallet_key (aes key) for encrypted master key from wallet.dat?

(Asked by: username_0 on 2024-03-06)

According to this link(<https://bitcointalk.org/index.php?topic=5331322.0>), the initialized vector and aes key (wallet\_key) can be derived by hashing the password with sha512, but can this wallet\_key be extracted from wallet.dat(So,public info?)? Also, is this wallet\_key the same as the value extracted with bitcoin2john.py? hash512 = hashlib.pbkdf2\_hmac('sha512', password, salt, iterationcount) wallet\_key = hash512[0:32] iv = hash512[32:48]

**Tags:** wallet.dat


---

## 1 answers

### Answer by username_1 on 2024-03-06. Score: 0

> can this wallet\_key be extracted from wallet.dat

No, to serve any purpose, an encryption key must be kept separate from the encrypted material.


---

