Bitcoin Forum
April 27, 2024, 03:57:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I decrypt the Blockchain.info email backup wallet?  (Read 9637 times)
wyager (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
July 13, 2012, 03:34:39 AM
 #1

Blockchain.info regularly sends me an encrypted backup of the wallet I have stored with them. According to the email, I can either use their online services or "standard Unix tools" to decrypt this backup. Now, I assume they mean using the openssl command line tool or something, but I am having trouble figuring it out. I have tried the following:

Code:
openssl enc -d -in /Users/User/Downloads/wallet.aes.json -out /tmp/wallet -aes-256-cbc 

and since it looks like it might be base64 encoded, I also tried

Code:
openssl enc -d -in /Users/User/Downloads/wallet.aes.json -out /tmp/wallet -aes-256-cbc -base64

However, the first one gives a "Bad magic number" error and the second one gives an "error reading from file" (so I was probably wrong about base64). I also tried both of these with aes-256-ebc.

OTC-WoT: 1BWF66DuVqBCSFksUgkLtdYmHucpBgPmVm
1714190257
Hero Member
*
Offline Offline

Posts: 1714190257

View Profile Personal Message (Offline)

Ignore
1714190257
Reply with quote  #2

1714190257
Report to moderator
1714190257
Hero Member
*
Offline Offline

Posts: 1714190257

View Profile Personal Message (Offline)

Ignore
1714190257
Reply with quote  #2

1714190257
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714190257
Hero Member
*
Offline Offline

Posts: 1714190257

View Profile Personal Message (Offline)

Ignore
1714190257
Reply with quote  #2

1714190257
Report to moderator
1714190257
Hero Member
*
Offline Offline

Posts: 1714190257

View Profile Personal Message (Offline)

Ignore
1714190257
Reply with quote  #2

1714190257
Report to moderator
unclemantis
Member
**
Offline Offline

Activity: 98
Merit: 10


(:firstbits => "1mantis")


View Profile
July 13, 2012, 05:40:17 PM
 #2

Blockchain.info regularly sends me an encrypted backup of the wallet I have stored with them. According to the email, I can either use their online services or "standard Unix tools" to decrypt this backup. Now, I assume they mean using the openssl command line tool or something, but I am having trouble figuring it out. I have tried the following:

Code:
openssl enc -d -in /Users/User/Downloads/wallet.aes.json -out /tmp/wallet -aes-256-cbc 

and since it looks like it might be base64 encoded, I also tried

Code:
openssl enc -d -in /Users/User/Downloads/wallet.aes.json -out /tmp/wallet -aes-256-cbc -base64

However, the first one gives a "Bad magic number" error and the second one gives an "error reading from file" (so I was probably wrong about base64). I also tried both of these with aes-256-ebc.

I maybe be having the same issue. Decrypting is not working for me at all. Also their API is not decrypting their wallet right.

PHP, Ruby, Rails, ASP, JavaScript, SQL
20+ years experience w/ Internet Technologies
Bitcoin OTC | GPG Public Key                                                                               thoughts?
gbl08ma
Sr. Member
****
Offline Offline

Activity: 306
Merit: 250


Donations: http://tny.im/nx


View Profile WWW
July 13, 2012, 09:07:10 PM
 #3

Even though retrieving the address for my wallet worked fine through the Blockchain API (unlike what happened to unclemantis, on his other thread), I can't seem to be able to decrypt a backup of the same wallet on my computer with openssl either. I have double-encryption enabled, may that be the problem?

unclemantis
Member
**
Offline Offline

Activity: 98
Merit: 10


(:firstbits => "1mantis")


View Profile
July 13, 2012, 09:56:20 PM
 #4

Double encryption might be the issue but i can't say for sure.

So..... care to tell me how you got the api working! :-D

PHP, Ruby, Rails, ASP, JavaScript, SQL
20+ years experience w/ Internet Technologies
Bitcoin OTC | GPG Public Key                                                                               thoughts?
wyager (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
July 13, 2012, 11:01:29 PM
 #5

Even if their API works, I am more concerned with the possibility that they somehow go out of business. I would like to have a surefire way to recover my backup, if needed.

OTC-WoT: 1BWF66DuVqBCSFksUgkLtdYmHucpBgPmVm
unclemantis
Member
**
Offline Offline

Activity: 98
Merit: 10


(:firstbits => "1mantis")


View Profile
July 13, 2012, 11:14:09 PM
 #6

Even if their API works, I am more concerned with the possibility that they somehow go out of business. I would like to have a surefire way to recover my backup, if needed.

I hear ya! maybe the password is screwing it up? Do you have funny characters or something? That was my issue with the API. I needed to url encode my password

PHP, Ruby, Rails, ASP, JavaScript, SQL
20+ years experience w/ Internet Technologies
Bitcoin OTC | GPG Public Key                                                                               thoughts?
jim618
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
July 15, 2012, 08:32:23 PM
 #7

You can import the blockchain.info encrypted backups into MultiBit (including the double encrypted ones).

Piuk wrote an importer routine and it is part if the 'Tools | Import Private Keys' functionality.

There is a how to here:
http://multibit.org/help_importingPrivateKeys.html


MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
wyager (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
July 16, 2012, 03:24:17 AM
 #8

Any idea which part of the multibit source handles this? I am having trouble finding it.

OTC-WoT: 1BWF66DuVqBCSFksUgkLtdYmHucpBgPmVm
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1330



View Profile
July 16, 2012, 07:28:57 AM
 #9

See http://bitcoin.stackexchange.com/a/3037/659 (expand all the comments) and in particular https://gist.github.com/2757171 for the newest version of the Python code to decrypt the wallet.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
jim618
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
July 16, 2012, 08:00:57 AM
 #10

Any idea which part of the multibit source handles this? I am having trouble finding it.

It is in here:
https://github.com/jim618/multibit/blob/v0.4/src/main/java/com/piuk/blockchain/MyWallet.java

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
wyager (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
July 16, 2012, 12:50:17 PM
Last edit: July 16, 2012, 08:05:18 PM by wyager
 #11

See http://bitcoin.stackexchange.com/a/3037/659 (expand all the comments) and in particular https://gist.github.com/2757171 for the newest version of the Python code to decrypt the wallet.


Why the heck wasn't plain old AES good enough? And while you could technically do that with "standard UNIX tools", it's a heck of a task.

Thanks for the info, though, this should let me figure it out.

Edit:
Got an email from the blockchain.info tech support guy, he confirmed that the wallets can no longer be decrypted easily with "standard" tools.

OTC-WoT: 1BWF66DuVqBCSFksUgkLtdYmHucpBgPmVm
unclemantis
Member
**
Offline Offline

Activity: 98
Merit: 10


(:firstbits => "1mantis")


View Profile
July 21, 2012, 10:36:51 PM
 #12

See http://bitcoin.stackexchange.com/a/3037/659 (expand all the comments) and in particular https://gist.github.com/2757171 for the newest version of the Python code to decrypt the wallet.


Why the heck wasn't plain old AES good enough? And while you could technically do that with "standard UNIX tools", it's a heck of a task.

Thanks for the info, though, this should let me figure it out.

Edit:
Got an email from the blockchain.info tech support guy, he confirmed that the wallets can no longer be decrypted easily with "standard" tools.

That's bullshit. So much for his paper wallet cold storage solution.

PHP, Ruby, Rails, ASP, JavaScript, SQL
20+ years experience w/ Internet Technologies
Bitcoin OTC | GPG Public Key                                                                               thoughts?
wyager (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
July 22, 2012, 06:42:13 PM
 #13

See http://bitcoin.stackexchange.com/a/3037/659 (expand all the comments) and in particular https://gist.github.com/2757171 for the newest version of the Python code to decrypt the wallet.


Why the heck wasn't plain old AES good enough? And while you could technically do that with "standard UNIX tools", it's a heck of a task.

Thanks for the info, though, this should let me figure it out.

Edit:
Got an email from the blockchain.info tech support guy, he confirmed that the wallets can no longer be decrypted easily with "standard" tools.

That's bullshit. So much for his paper wallet cold storage solution.

Yeah, I agree. I mean, there are security considerations, but I'm sure one could base them off of some easily repeatable task instead of a complex-as-shit byte swapping and hashing algorithm.

OTC-WoT: 1BWF66DuVqBCSFksUgkLtdYmHucpBgPmVm
Galahad
Full Member
***
Offline Offline

Activity: 190
Merit: 100


View Profile
August 18, 2013, 04:58:39 PM
 #14

Does this apply to paper wallets as well as encrypted digital backups of them? So that if blockchain disappeared getting Bitcoins back would be tough.
jim618
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
August 18, 2013, 08:45:21 PM
 #15

You can import your encrypted blockchain.info wallet backups into MultiBit.
There is a detailed how to here:

https://multibit.org/en/help/v0.5/help_movingAWallet.html

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
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!