Bitcoin Forum
February 28, 2024, 08:44:49 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info encryption  (Read 1053 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
1709109889
Hero Member
*
Offline Offline

Posts: 1709109889

View Profile Personal Message (Offline)

Ignore
1709109889
Reply with quote  #2

1709109889
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1709109889
Hero Member
*
Offline Offline

Posts: 1709109889

View Profile Personal Message (Offline)

Ignore
1709109889
Reply with quote  #2

1709109889
Report to moderator
1709109889
Hero Member
*
Offline Offline

Posts: 1709109889

View Profile Personal Message (Offline)

Ignore
1709109889
Reply with quote  #2

1709109889
Report to moderator
flatfly
Legendary
*
Offline Offline

Activity: 1064
Merit: 1011


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.

My main address: 1337sfeChyyzZLzdHLewXzcaAaJSNTM893.
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!