Bitcoin Forum
May 26, 2024, 10:08:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Decrypt private key - bitcoin  (Read 91 times)
azverev (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 17, 2021, 11:55:38 PM
 #1

Hi, My wallet-backup.json looks like below. I remember my password. How to get proper private key? Please help.
{"keys":[{"addr":"<BTC address>","priv":"<97 lenght encrypted private key>",
"encryptionMode":"PKBDF2-SHA256","iterations":2000}],"salt":"<salt value>"}
bitmover
Legendary
*
Offline Offline

Activity: 2310
Merit: 5964


bitcoindata.science


View Profile WWW
February 18, 2021, 03:35:40 AM
 #2

Hi, My wallet-backup.json looks like below. I remember my password. How to get proper private key? Please help.
{"keys":[{"addr":"<BTC address>","priv":"<97 lenght encrypted private key>",
"encryptionMode":"PKBDF2-SHA256","iterations":2000}],"salt":"<salt value>"}

Is this an old blockchain.info wallet?

If it is, you can try to insert your json here:
https://login.blockchain.com/wallet/import-wallet

If it is not a blockchain.info wallet, do not put it there.

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

Activity: 1610
Merit: 6761


bitcoincleanup.com / bitmixlist.org


View Profile WWW
February 18, 2021, 04:22:58 AM
 #3

Is this an old blockchain.info wallet?

If it is, you can try to insert your json here:
https://login.blockchain.com/wallet/import-wallet

If it is not a blockchain.info wallet, do not put it there.

The private key is encrypted so if it's a blockchain wallet file then it ought to be one of those wallet.aes.json files that look like this:

{
  "ct" : "xyz",
  "iter" : 10000,
  "adata" : "",
  "salt" : "xyz",
  "cipher" : "aes",
  "ks" : 128,
  "v" : 1,
  "mode" : "ccm",
  "iv" : "xyz",
  "ts" : 64
}

Which does not match the format of this file and so it's not a blockchain.com wallet.



Anyway it looks like it's doing 2000 rounds of PBKDF2-SHA256 (or maybe PBKDF2 with 2000 rounds of SHA256 hashing? Huh) to encrypt the private key with a password, so maybe there's a script or utility that can decrypt this private key without the wallet software.

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

Activity: 3458
Merit: 10589



View Profile
February 18, 2021, 04:46:20 AM
 #4

2000 rounds of PBKDF2-SHA256 (or maybe PBKDF2 with 2000 rounds of SHA256 hashing? Huh)
Key derivation functions such as PBKDF2 all have some variables that decide the strength of the derived key. PBKDF2 uses the iteration count to do it and under the hood it repeats is main function 2000 times which consists of computing HMACSHA functions with the given SHA2 hash algorithm.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!