Bitcoin Forum
April 30, 2024, 10:50:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to decrypt electrum wallet encrypted file backup?  (Read 153 times)
_act_ (OP)
Hero Member
*****
Online Online

Activity: 868
Merit: 1153



View Profile
June 09, 2022, 10:03:47 PM
 #1

I am using electrum, I created a 2fa wallet with it. I wanted to be able to access my two master private keys while the third is with TrustedCoin, I imported the seed phrase on another electrum wallet, I disabled TrustedCoin and made it 2-of-2 multisig. I removed the password and backup the wallet file. I used text editor to easily see my two master private key.

But I will prefer file backup with my password included, but if I backup the 2fa wallet with my electrum password enabled, I was unable to read the wallet file on text editor as it is full of what I did it know.

I think the password of my electrum makes the file to be encrypted which is safer. Is there a way or a tool I can use to decrypt the file?

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
1714517404
Hero Member
*
Offline Offline

Posts: 1714517404

View Profile Personal Message (Offline)

Ignore
1714517404
Reply with quote  #2

1714517404
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714517404
Hero Member
*
Offline Offline

Posts: 1714517404

View Profile Personal Message (Offline)

Ignore
1714517404
Reply with quote  #2

1714517404
Report to moderator
1714517404
Hero Member
*
Offline Offline

Posts: 1714517404

View Profile Personal Message (Offline)

Ignore
1714517404
Reply with quote  #2

1714517404
Report to moderator
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10519



View Profile
June 10, 2022, 03:35:14 AM
 #2

I think the password of my electrum makes the file to be encrypted which is safer. Is there a way or a tool I can use to decrypt the file?
What's wrong with using Electrum itself? After all the software creates the wallet and encrypt/decrypt it itself and it is the best option to use instead of some third party application that may be buggy in best case scenario or malicious in worse.

You can remove the file's password inside Electrum by going to Wallet > Password option from menu and then entering your password and leaving the other two boxes empty.
Otherwise it is trivial to look at the source code and write something that decrypts wallet files using AES.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
June 10, 2022, 11:05:32 AM
 #3

I am using electrum, I created a 2fa wallet with it. I wanted to be able to access my two master private keys while the third is with TrustedCoin, I imported the seed phrase on another electrum wallet, I disabled TrustedCoin and made it 2-of-2 multisig. I removed the password and backup the wallet file. I used text editor to easily see my two master private key.

Does the wallet actually store 2 master private keys? I thought the mnemonic was a representation of 2 but one of the keys wasn't stored in the wallet, one was and one was with trustedcoin? I'm just curious if this is going to be usable for people who lose their 2fa and only have their wallet file if 2 of the keys are stored there.
_act_ (OP)
Hero Member
*****
Online Online

Activity: 868
Merit: 1153



View Profile
June 10, 2022, 12:02:25 PM
Merited by jackg (1)
 #4

What's wrong with using Electrum itself? After all the software creates the wallet and encrypt/decrypt it itself and it is the best option to use instead of some third party application that may be buggy in best case scenario or malicious in worse.

You can remove the file's password inside Electrum by going to Wallet > Password option from menu and then entering your password and leaving the other two boxes empty.
Otherwise it is trivial to look at the source code and write something that decrypts wallet files using AES.
I used this method for the unencrypted means to backup the file. But what about if I backup the wallet encrypted and my laptop is damaged and I want to recover through encrypted backup file. Is it possible to buy another laptop, recover the private keys from the encrypted file backup if I download electrum on the new electrum wallet downloaded on new laptop?

Though I will have my seed phrase too in case that does not work.

Does the wallet actually store 2 master private keys? I thought the mnemonic was a representation of 2 but one of the keys wasn't stored in the wallet, one was and one was with trustedcoin? I'm just curious if this is going to be usable for people who lose their 2fa and only have their wallet file if 2 of the keys are stored there.
If you have disabled TrsutedCoin and make it 2-of-2 multisig, you will be able to access your two private keys on the file backup.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


View Profile
June 10, 2022, 12:58:43 PM
Merited by pooya87 (2)
 #5

I used this method for the unencrypted means to backup the file. But what about if I backup the wallet encrypted and my laptop is damaged and I want to recover through encrypted backup file. Is it possible to buy another laptop, recover the private keys from the encrypted file backup if I download electrum on the new electrum wallet downloaded on new laptop?

Though I will have my seed phrase too in case that does not work.
It will. The password will work so long as the file is uncorrupted, no matter where you decrypt it.

I would be more comfortable with using the seed as a backup method. It would definitely work and there is no reason why backing up the file would be better than it, unless you need the labels and stuff like that. I would probably avoid exposing the seed so much as well.

If you're looking for a method, just make sure the wallet file is unencrypted (with the encrypted keys) then extract the encrypted seeds. Afterwards, just use OpenSSL or similar utility and decrypt it with AES-256-CBC.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4237


Join the world-leading crypto sportsbook NOW!


View Profile WWW
June 10, 2022, 02:22:19 PM
 #6

I used this method for the unencrypted means to backup the file. But what about if I backup the wallet encrypted and my laptop is damaged and I want to recover through encrypted backup file. Is it possible to buy another laptop, recover the private keys from the encrypted file backup if I download electrum on the new electrum wallet downloaded on new laptop?

Though I will have my seed phrase too in case that does not work.

A corrupted file is a corrupted file, regardless of whether it's encrypted or not.  Sure they're may be some readable text in an unencrypted file that might give you most of the private key(s), but that's just a roll of the dice.  Regardless of whether the file is encrypted or not, you'll want to make regular backups and keep them secure.  An encrypted wallet file can be opened on any machine with Electrum installed, all that's needed is the password.
 

I would be more comfortable with using the seed as a backup method. It would definitely work and there is no reason why backing up the file would be better than it, unless you need the labels and stuff like that. I would probably avoid exposing the seed so much as well.

Of course the seed phrase should be your primary backup, but it's nice to save labels and contacts.  That is, in fact all that backing up the wallet file will buy you.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5568


Self-proclaimed Genius


View Profile
June 11, 2022, 02:46:31 AM
 #7

-snip- But what about if I backup the wallet encrypted and my laptop is damaged and I want to recover through encrypted backup file. Is it possible to buy another laptop, recover the private keys from the encrypted file backup if I download electrum on the new electrum wallet downloaded on new laptop?

Though I will have my seed phrase too in case that does not work.
Then just load the existing wallet file to the new laptop's Electrum.
It will work like how it used to be in the damaged laptop.

I can't see any reason to go for the trouble of decrypting the wallet file to get the keys if you have the seed phrase as backup.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
June 11, 2022, 08:45:51 AM
Merited by Abdussamad (2)
 #8

I disabled TrustedCoin and made it 2-of-2 multisig.
You didn't. It's still 2-of-3 multi-sig, you just have two private keys in the same wallet.

Does the wallet actually store 2 master private keys?
The standard 2FA wallet doesn't, it only stores one. If you use the seed phrase to recover the wallet and disabled TrustedCoin's 2FA, then the recovered wallet will indeed store two, so you can spend from it without going through the 2FA process.



I would say it's safer to not do any of this, and just keep your seed phrase securely stored offline. Once you start storing two private keys in the same unencrypted wallet file, then you have lost all the benefits of a multi-sig wallet and are essentially just using an insecure hot wallet.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!