Author

Topic: AES-256-CBC and Private Key (Read 206 times)

newbie
Activity: 7
Merit: 1
September 24, 2019, 02:56:51 AM
#3
Bitcoin Core version v0.18.99.0-442a9c647-dirty (64-bit)

- source code from github
staff
Activity: 3458
Merit: 6793
Just writing some code
September 23, 2019, 10:28:22 PM
#2
What software are you using to decrypt the key?
newbie
Activity: 7
Merit: 1
September 23, 2019, 02:41:28 PM
#1
I am at the final stage. I am now working on checking the encryption for the private keys inside the wallet.

      Why does the calculation not work for decrypting private key?


I have the correct private key which was derived from Bitcoin string within Bitcoin2john.py script for wallet.dat.
I have double sha 256 public key for the above address.
I have gotten the unencrypted master key data from the following function in crypter.cpp:

bool DecryptSecret(const CKeyingMaterial& vMasterKey, const std::vector& vchCiphertext, const uint256& nIV, CKeyingMaterial& vchPlaintext)

        std::string MasterKey (vMasterKey.begin(), vMasterKey.end());

The error I am getting is as follows: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. Any help on this will be greatly appreciated with a small tip of thanks to your address.
Jump to: