Post
Topic
Board Bitcoin Technical Support
Merits 1 from 1 user
Re: get sha-512 of wallet.dat
by
NotATether
on 14/06/2021, 20:38:57 UTC
⭐ Merited by ETFbitcoin (1)
You must be referring to the wallet hash of a password (and not encrypted private keys, which do use AES256CBC), which looks similar to this:

Code:
BTC2014 $ bitcoin $ 64 $ 6a750G4ef1867cff00d941df3d1165c39164b4273aca3c7e57af5adf60183945 $ 16 $ 83c69fe19b89ab31 $ 81501 $ 2 $ 00 $ 2 $ 00

Hashing a password in a wallet.dat is done using PBKDF2, and the SHA512 is merely a hash function used on a chunk of data within the many HMAC functions invoked in the PBKDF2 hash. So, you are not looking for a SHA512 hash, you want the PBKDF2 hash, which looks like the one I quoted above.

This hash can be obtained using the script bitcoin2john.py which is available on Github at https://raw.githubusercontent.com/magnumripper/JohnTheRipper/bleeding-jumbo/run/bitcoin2john.py .