Post
Topic
Board Bitcoin Technical Support
Re: Decrypt private key by passphrase alone, possible?
by
BitMaxz
on 29/03/2021, 23:57:36 UTC
I have already used dumpwallet with pywallet on the recovered wallets I found with a full drive scan. This is a wallet.dat I found in a lost partition by using recovery software. The file won't dump like the other wallets, as I think it is corrupted, and shows as 96kb before using pywallets dumpwallet command. The resulting dumped wallet is only 32kb and says "wallet is encrypted passphrase is correct" but unlike the others it shows only one encrypted private key and nothing else apart from salt and a number. The one encrypted key is a different alphanumeric number to any of the other encrypted private keys I have recovered, so obviously it could be the one I'm after. None of the wallets are usable in the normal way in bitcoin core no matter what command you use as they are corrupted. I have used the passphrase on the other recovered wallet.dats and it shows all the addresses, private keys, mkey etc ie it decrypts the wallets.

Do you get error when importing it with bitcoin core? something like "Your wallet file may be corrupt"

Can you try the method from the link below?

- How to recover your corrupt or deleted Bitcoin Core wallet

Check the 2nd method under "Corrupt wallets" it's the other way to decrypt the wallet.dat file using OpenSSL and BitcoinJ and try it and maybe it can decrypt the wallet file and shows the decrypted private key.