Bitcoin Forum
May 02, 2024, 12:22:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to manually decrypt Electrum and Bitcoin Core wallets?  (Read 173 times)
CryptoSh1va (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 7


View Profile
August 31, 2021, 05:18:59 PM
Last edit: November 15, 2021, 10:00:38 AM by CryptoSh1va
Merited by ABCbits (1)
 #1

I am trying to write my own utility for manual decryption of electrum files.
1714609373
Hero Member
*
Offline Offline

Posts: 1714609373

View Profile Personal Message (Offline)

Ignore
1714609373
Reply with quote  #2

1714609373
Report to moderator
1714609373
Hero Member
*
Offline Offline

Posts: 1714609373

View Profile Personal Message (Offline)

Ignore
1714609373
Reply with quote  #2

1714609373
Report to moderator
1714609373
Hero Member
*
Offline Offline

Posts: 1714609373

View Profile Personal Message (Offline)

Ignore
1714609373
Reply with quote  #2

1714609373
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714609373
Hero Member
*
Offline Offline

Posts: 1714609373

View Profile Personal Message (Offline)

Ignore
1714609373
Reply with quote  #2

1714609373
Report to moderator
1714609373
Hero Member
*
Offline Offline

Posts: 1714609373

View Profile Personal Message (Offline)

Ignore
1714609373
Reply with quote  #2

1714609373
Report to moderator
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2955


Block halving is coming.


View Profile WWW
August 31, 2021, 06:35:34 PM
 #2

Which one actually do you want to decrypt? The wallet or the Electrum software?

If you talking about Decrypting the Electrum software why not go to their open-source https://github.com/spesmilo/electrum
Then you can develop it with your own utility that you want to add.

Or are talking about the wallet file or wallet.dat with a password?

There is a way to brute-force it but without the portion of the password or seed phrase it will take years before you can recover your password or wallet.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
September 03, 2021, 06:47:25 AM
Merited by ABCbits (4), hugeblack (4), NeuroticFish (3)
 #3

I am trying to write my own utility for manual decryption of Electrum and Bitcoin Core wallet.dat files.
Do note that wallet.dat files are not encrypted at the file level... When you enable encryption, certain data records within the database file (what a wallet.dat actually is) are encrypted.

But you can parse/read the file with the appropriate database "viewer" (like dbdump)... you'll just get encrypted bytes for some of the records.

Have a read of this topic: recover keys from wallet.dat without using pywallet

And if you understand python... you'll find my "core decryptor" python script in one of the posts in that thread as a working example: https://bitcointalk.org/index.php?topic=5333765.msg57036972#msg57036972




Electrum is a slightly different beast... it has three "encryption states" for the wallet file:

1- Unencrypted plaintext (No password set)
2- Plaintext but with 'sensitive data' (ie. private keys/seeds etc) encrypted (Password only set)
3- Fully encrypted file (password set + encrypt file option selected)

As suggested, you can probably get a feel for how the decryption of either the individual fields (#2) or full file (#3) is done by looking at the source code for Electrum.

I haven't actually tried decrypting Electrum wallet files manually.


Also, I don't have any experience with golang, so can't really assist with porting the core decryptor code Undecided

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!