Author

Topic: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files (Read 1936 times)

newbie
Activity: 17
Merit: 0
That decrypted file IS a wallet.
You should be able to load it up and print it out - there is a toString on the wallet object that takes a boolean to print out the private keys IIRC
Look at WalletManager for loading options.
newbie
Activity: 12
Merit: 0
OK, so I got something.

I added this code to the test and ran it with a newly created wallet file, so I can post the results here:
Code:
 File encrypted = new File("/tmp/mbhd.wallet.aes");
    File decrypted = new File("/tmp/mbhd.wallet");
    CharSequence passwordTest = "DFopdjfj0ps0u3Fjns02";
    
    InputStream decryptedInputStreamTest = EncryptedFileReaderWriter.readAndDecrypt(
            encrypted,
            passwordTest
    );
    OutputStream out = new FileOutputStream(decrypted);
    byte[] buf = new byte[4096];
    int len;
    while((len=decryptedInputStreamTest.read(buf))>0){
    out.write(buf,0,len);
}
    out.close();
    decryptedInputStreamTest.close();



I can't make sense of most of the result, probably forgot some extra step in decoding the contents?
I could find anything related to an xprv or xpub, only addresses (not mine, it's a new walelt, maybe BRIT fees?) and some strings related to the wallet file.
Here's part of the end,  where you can see something that makes sense and a lot of gibberish.

Could you point me to the right direction? Thank you!

Code:
r�3´…¸˜.-k¤¶ºê»›Š en¸Æñ›îMú3&ºª€€€€„(2

8Âu`†«Ø08Rø
MatcherResponseâ
2
1461219107720
1DHzpZTVFQ3MZkEP3sEWumwu1ThuGXD8gY
13wETtwjJPJcCzuHetRVpY9VaSpqtrsSD6
1MMRdXYaUbZYP3UM18aiY6FksZ9nUGvdYA
1YPNNE8YnxRPniPKsgAE2ztZ5KsBu4DTA
12hJX5x6h1dsqNYcw7QHyFv3WBFm3Aa2c8
1BVo2JKBFpamY8EPJxL62tWUX2zuyCYPWw
1Ei8Ag71MsZ1e9bL9s7fJ2YygRMakmFcvM
1obX8EaiEa7qXtC3D9gg2MrxbghvBcNEk
1GVhrppb9gdUMmKMANWjH3sm4hi1AiPsV4
1EAqLzhiJtf33TJpEQCEUX7FYfgBbyRSMT
1NyaDvBj9w7VnQk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WL9x1tQkLT92i1mwo4F7QQGCUh
12i2444dq46Bz1sScMbsmgbSYzdd3h6UzG
1JCofCtx7GMiQjoUG5CJnhPkysuh4PK3XS
1B931xX2cJ1zXSwNkZa9Bd3eZD2vt8gKoY
1EzUxmvSEp5R4xpT5MSakhVjjbNwKAovaa
1MxpFR89jBmSG3LsWHXmYaHmo98n7N969B
1GQj7CtcNA4Km8d4cfNpdB4zqjWLe5jXyH
1BhaFjq7hcLCU1kqn5AjCuhC34WjanuyZE
18R8XarzzqjzNQkZg1aMdhqjKU9wk39WZJ
 RD
(org.multibit.hd.core.WalletTypeExtensionMBHD_SOFT_WALLET_BIP32 `à�h pÅ–ý°


newbie
Activity: 17
Merit: 0
You can only really do it programmatically. All the backup/restore in MultiBit HD itself are based on you knowing your wallet words.

If you have a look at :

org.multibit.hd.core.crypto.EncryptedFileReaderWriter
org.multibit.hd.core.crypto.EncryptedFileReaderWriterTest

that's the code that encrypts and decrypts the wallet files with the password.

The codebase is here:
https://github.com/bitcoin-solutions/multibit-hd
newbie
Activity: 12
Merit: 0
hero member
Activity: 583
Merit: 502
Thanks GoldTiger - but finding the password is NOT the problem.

Have a mutibit wallet AND the password (and other required files/folders). It opens successfully in Multibit HD with the password.

How do I decrypt the .aes wallet file WITHOUT the multibit HD client, that is the question. Tried to decrypt with AESCrypt and others - yes with the correct password - and it gives an error.

Appreciate the devs help here!

Oh, I misunderstood what you where trying to say, my mistake.
newbie
Activity: 27
Merit: 1
Thanks GoldTiger - but finding the password is NOT the problem.

Have a mutibit wallet AND the password (and other required files/folders). It opens successfully in Multibit HD with the password.

How do I decrypt the .aes wallet file WITHOUT the multibit HD client, that is the question. Tried to decrypt with AESCrypt and others - yes with the correct password - and it gives an error.

Appreciate the devs help here!
hero member
Activity: 583
Merit: 502
The one I use is https://github.com/gurnec/btcrecover. If you want me to recover your wallet my fee is 20% of the total of the wallet (or 0.1 btc as a minimum).

Hope that helps.
newbie
Activity: 27
Merit: 1
I would also like to know this...Tried AEScrypt and some others (error: bad format ), need to decrypt the wallet file and retrieve the existing keys.

Yes, I know about just restoring or sending the money - have the wallet and wallet password, please lay out the steps to decrypt - thanks!
newbie
Activity: 12
Merit: 0
Not using the UI of MultiBit HD no.

You need one of the encrypted backups that are created and the wallet words to decrypt them to recreate a complete wallet directory for everything to work properly.

The wallet is encrypted with the wallet password so you could do it programmatically and dump the private keys yes.

Hi Jim, thanks for the response.
I tried some tools on a Linux box and wasn't able to decrypt the .aes file.
Could you let me know which one should I use?

Thank you.
legendary
Activity: 1708
Merit: 1066
Not using the UI of MultiBit HD no.

You need one of the encrypted backups that are created and the wallet words to decrypt them to recreate a complete wallet directory for everything to work properly.

The wallet is encrypted with the wallet password so you could do it programmatically and dump the private keys yes.
newbie
Activity: 12
Merit: 0
Hello people. How can I reconstruct my wallet with those 2 files or at least extract the xpriv or private keys?
Jump to: