Bitcoin Forum
May 24, 2024, 07:26:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info encryption  (Read 1057 times)
walletrecoveryservices (OP)
Member
**
Offline Offline

Activity: 89
Merit: 21



View Profile WWW
December 09, 2013, 10:34:50 PM
 #1

Hi
I'm trying to understand/duplicate the second-level password encryption used at the blockchain.info site.

https://blockchain.info/wallet/wallet-format

Their site says that the dpasswordhash value is calculated as 10 rounds of SHA256 on the sharedKey plus the secondpassword.
   
var dpasswordhash = Crypto.SHA256(sharedKey + secondPassword);

However, when I try to duplicate this functionality, I get a different dpasswordhash value.

Has anyone got some pseudo-code that can show this working (and actually getting the correct dpasswordhash value)?
(I can't make much sense of the javascript available at their site)

I've tried various things, such as using command line openssl, as per
openssl dgst -sha256 -hex -out tempout.txt tempin.txt

or similar, but I can't get the right answer Sad
grrrr
Thanks for any advice!

Providing Cryptocurrency Wallet, Password and Seed Recovery Services since 2013
flatfly
Legendary
*
Offline Offline

Activity: 1078
Merit: 1016

760930


View Profile
December 09, 2013, 10:46:10 PM
 #2

First, are you trying openssl on Windows or Linux? I've noticed that it does make a difference, in some cases.
walletrecoveryservices (OP)
Member
**
Offline Offline

Activity: 89
Merit: 21



View Profile WWW
December 09, 2013, 11:09:04 PM
 #3

First, are you trying openssl on Windows or Linux? I've noticed that it does make a difference, in some cases.
I am trying it on windows.
But even using some online tools such as
http://www.convertstring.com/Hash/SHA256
(which agrees with my results of using openssl), I can't get it to agree with the information from blockchain.info

It might be related to padding or encodings to/from hex or base58..?

Providing Cryptocurrency Wallet, Password and Seed Recovery Services since 2013
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!