What if a multibit classic private key is decrypted into garbled codes? 7 years ago I exported the multibit classic wallet and private key, both encrypted. Only remember the key password now. Problems occurred when I tried to decrypt the key in following ways:

installed MultiBit Classic 0.5.17 from web (might be dangerous).
Created a new wallet and tried &quot;tools--import private key&quot;. Chose the old key, input the password and clicked &quot;decrypt&quot;. The password seemed correct because there wasn't a fail note, which always appeared for other passwords.
Then, when I clicked &quot;import private key&quot;, a fail note said &quot;could not understand address in import file&quot;.
To compare I exported a new encrypted private key and followed steps above. It worked well. Though the new key had a wrong timestamp in 2014, it didn't hinder the import.

Used openssl in cmd to do direct decryption, found the only code:


openssl enc -d -p -aes-256-cbc -md md5 -a -in multibit.key  -out key.txt  -pass 'pass:myPassword'
that can decrypt the new key successfully. When decrypting the old key, it didn't show any error either, no &quot;bad decryption&quot;. But the plain text was garbled like

?躠磱Q?39'ad&quot;t鉼!?狡


_決[qp嗽雔紧鸘:?A濵彆r闞? &amp;*绉i#唹B7鼞_z?

Tried lots of text-code-converter and they only gave different garbled text...
How would this happen? Was the old key exported incorrectly in 2013? Is there any hope?
I think what you are seeing is binary data being viewed using a program (or command) that expects ASCII or UTF-8 encoded character data.
I would add -base64 to the openssl command and see if that produces the results you expect.
If you need the key in a different encoding (like say base58 or WIF) you might have to do that as a separate step using a second command/program.

Decrypting keys from Multibit
I found some instructions for decrypting Multibit keys which don't say if they are for Multibit Classic, Multibit HD or for both. It may be they only work for one and not for the other.

This is the format of the MultiBit private key file
Keys are saved in an ASCII encoded text file.
There is one key per line (empty lines and lines starting with '#' are ignored).
\&lt;Base58 encoded private key\&gt;[\&lt;any number of whitespace characters\&gt;[\&lt;key createdAt in UTC format\&gt;]] 

To decrypt a MultiBit private key export file use:
openssl enc -d -p -aes-256-cbc -a -in \&lt;ciphertext file\&gt; -out \&lt;plaintext file\&gt; -pass pass:\&lt;password\&gt;


Note that this command lacks the -md md5 option you used. I would try this version.
The OpenSSL manual page says

-md digest
Use the specified digest to create the key from the passphrase. The default algorithm is sha-256.

so this would affect decryption.
The results you are reporting suggest that either the instructions you used don't apply to the particular version of Multibit you used or that you don't have the correct data file or perhaps don't have the correct password.

Importing keys into Electrum
According to instructions for importing keys into Electrum, Electrum needs the key in Wallet Import Format (WIF) so you'll need to convert your exported Multibit key into that format. It looks like it is easiest to start with a hexadecimal representation rather than the Base58 Multibit and others use.
Note that you can't just import a private key into Electrum at any time. You can only do that when you first initialise and create the Electrum wallet, not subsequently.