Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: kandagar on December 04, 2018, 11:12:18 AM



Title: del
Post by: kandagar on December 04, 2018, 11:12:18 AM
del\


Title: Re: wallet.dat hash (bitcoin core)
Post by: HeRetiK on December 04, 2018, 01:46:18 PM
A cryptographic hash acts like a one-way encryption, meaning while you can't derive the input (eg. password) from the output (ie. hash) you can be sure that the same input will always lead to the same output.

The security of this however strongly depends on the used cryptographic hash. Also you can't "decrypt" a hash, if that's your next question.

What are you trying to do?


Title: Re: wallet.dat hash (bitcoin core)
Post by: pooya87 on December 05, 2018, 04:21:03 AM
is there a private key in this hash ?? private key bitcoin adress wallet

it is not hash, it is hex and yes there is a private key in your wallet.dat file that is encrypted using AES256 encryption technique and then stored in the file.
the code you are using (JohnTheRipper) is a password cracker/brute force that is designed to attempt cracking wallet passwords and in the code you ran here it just serializes the data so that it can continue with the brute force if you provide it with a list of passwords and limit its search so that it becomes possible to crack it.

however i don't know why the key is 48 bytes it has an extra 16 bytes in it!


Title: Re: wallet.dat hash (bitcoin core)
Post by: Thirdspace on December 05, 2018, 10:58:45 PM
then there is a private key in the hash ??? only encrypted ???

31f40dacb48f2aae7bd601bb50f1d4ce3ef826e0307539665ac80dba7a42480dc76de571876a82a f347d7a01bd3cfb6c
privatekey???
yes, that looks like an encrypted private key to me
and the 66 characters public key means that's a compressed public key
for a compressed bitcoin address of 13caFLgJu92ndzpodGJ9s5frBTjPPFboAb


Title: Re: wallet.dat hash (bitcoin core)
Post by: keychainX on December 07, 2018, 05:34:48 PM
Good afternoon, is it safe to transfer the password hash? And what does it store?

bitcoin2john.py
$bitcoin$96$c1ce586fcbd57a0dd60a1b08a65a3fad9269f788d7bcecd411d95cc222c9f0cdf7ebfc6fa33847607f7b8c1338a2c3f8$16$10cb87989a39ef71$60692$96$31f40dacb48f2aae7bd601bb50f1d4ce3ef826e0307539665ac80dba7a42480dc76de571876a82af347d7a01bd3cfb6c$66$03faef628e4cc1aec8438e8459364cfd0f867500beb9bdb17383d803cd02946c01


If you run bitcoin2john.py on a wallet.dat file it outputs above line, which starts with $bitcoin$ , this is the hash to the password of your wallet.

It has NOTHING to do with your private key, so YES, its safe to send it to a wallet recovery service or whoever helps you with retrieving your password.

The private key is encrypted in the wallet file, but not included in the above hash, not even your public address is included in the hash above, just information regarding the password you used to encrypt your wallet file.

So the person who cracks the hash above with a password, will just get your password. To access your funds, you have to have the physical file, unlock it, then sync it with bitcoin-qt, and finally move funds or export private key to another wallet like electrum etc

/KX


Title: Re: wallet.dat hash (bitcoin core)
Post by: keychainX on December 08, 2018, 03:56:31 PM
This hash  contains the master key by which you can generate all the addresses in the wallet

Oh well, you seem very informed. Good luck then...  :-\ :-\ ::) ::) ::)  :-X :-X


Title: Re: wallet.dat hash (bitcoin core)
Post by: KingZee on December 11, 2018, 07:08:21 PM
EE~ }yvT�g^�tV�� ��r 9Ԓ`k@< ?

This is a decrypted wallet encryption key, why is it in this form?

Where did you get that output from? What ETFbitcoin said is true, you're displaying something in utf-8 that should be displayed in hex.

Quote from : https://en.bitcoin.it/wiki/Wallet_encryption

Quote
This master key is then encrypted with AES-256-CBC with a key derived from the passphrase using SHA-512 and OpenSSL's EVP_BytesToKey ...

If you explain what you tried to do to get that far maybe we can help out