I'm trying to get my coins out of an old MultiBit classic wallet. I fired up Multibit classic and tried to send the funds to a new wallet. Unfortunately, my password wouldn't work. Damn.
But! I found this script on multibit's support forums. https://multibit.org/help/v0.5/help_lostOrForgottenPassword.html
#!/bin/bash
echo Usage: apply-guesses.sh [password CSV] [key file]
echo Password file: $1
echo Key file: $2
for password in $( awk -F , -v OFS=' ' '{print $3}' $1 ); do
echo ------
echo Attempting: $password...
openssl enc -d -p -aes-256-cbc -a -in $2 -out recovered.key -pass pass:$password
if [ $? -eq 0 ];
then
echo "Success!";
break;
else
echo "Failed";
fi
echo ------
done
I ran the script using a csv of all my old bitcoin passwords and I got a success!
It returned this: (I changed all the numbers)
Attempting: password123
salt = 9823498243829374
key = 98237890238420938429830394850394
iv = 98743259384793847593844
Success!
But when I tried that password it still said it was incorrect. :(
But! it also created a file called recovered.key. I opened up the file and it was a bunch of badly encoded gibberish symbols like this: '¦ÀÌÁïûê¿^½”ß/øZÄÑQÛ,i¹´$'
I read somewhere that multibit keys are base 58 encoded so I encoded the recovered.key base 58 style and it became much more legible. Now I have a string of letters and numbers that's 611 characters long and starts with a '3'. Is this my private key?
I've been trying to import it into a new wallet in MultiBit classic, but no luck so far. I exported a private key from a new empty wallet and it looks like this: (I changed the key for this post)
# KEEP YOUR PRIVATE KEYS SAFE !
# Anyone who can read this file can spend your bitcoin.
#
# Format:
# <Base58 encoded private key>[<whitespace>[<key createdAt>]]
#
# The Base58 encoded private keys are the same format as
# produced by the Satoshi client/ sipa dumpprivkey utility.
#
# Key createdAt is in UTC format as specified by ISO 8601
# e.g: 2011-12-31T16:42:00Z . The century, 'T' and 'Z' are mandatory
#
L1paCgWAYm2wzRfznmcoy5pbskdhShRVneAzBeuwaj244s7fr9nE 2017-09-04T21:54:32Z
# End of private keys
I swapped out the key in that wallet with my base58 recovered key, but it was a lot longer than this, and when I tried to import it it told me "Could not understand address in import file"
So... I have a really long string that I think is my private key, but I don't think it's in the right format. Also I might just be an idiot. Can anyone help me out?