Bitcoin Forum
May 02, 2024, 11:59:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blockchain.info wallet backups are worthless if blockchain.info is offline  (Read 1889 times)
aes1 (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10



View Profile
April 23, 2013, 10:28:01 AM
 #1

Hi,

I just created a wallet at blockchain.info. What a nice service. And it lets me backup and download an encrypted wallet. Even saves it to Dropbox automatically. Very handy.

Now, before moving my life savings to blockchain's wallet, I decided to prepare for the doomsday scenario: assume that blockchain.info suddenly disappears from Internet and I have an urgent need for my bitcoins. I have my wallet backups, and I know my password. Now how would I recover my private keys?

Attempt 1: I tried blockchain.info's own decrypt tool (https://blockchain.info/DecryptWallet.html) before, and it worked, but in the doomsday scenario it's gone as well. Unless it used a HTML5 cache manifest and is cached on my machine. Which is not likely. FAILURE #1.

Attempt 2: I recall that an alternative Bitcoin client could import blockchain.info wallet backups. So I google up "alternative bitcoin clients" and try the first one that I find, MultiBit. It does have the option to import my backup, nice. I choose the file, enter my password, click "Unlock"... Nothing happens. I click "Unlock" again. Nothing happens again. Either the software is buggy as hell, or the encryption format has been changed, or possibly it's just a trojan that just posted my password all over the internet. Anyway, FAILURE #2.

Attempt 3: I recall that the wallet was AES encrypted, and the filename being ".aes.json" supports that theory. Now I happen to be lucky enough to know that there's a tool called openssl that I can use to decrypt files, and I happen to have it installed as well.

I google "decrypt aes openssl", and the first hit gives me an example of decrypting an AES-encrypted file. I'm also lucky to know what a base64-encoded file looks like, and the backup definitely seems like one. So this should do:

Quote
# decrypt base64-encoded version
openssl enc -d -aes-256-cbc -a -in file.enc

I change the filename to "wallet.aes.json" and try that.

Quote
% openssl enc -d -aes-256-cbc -a -in wallet.aes.json
enter aes-256-cbc decryption password:
error reading input file

Uh, ok? Now could it be some other AES than this aes-256-cbc? Let's try all of them, conveniently listed on the same page: aes-128-cbc, aes-128-ecb, aes-192-cbc, aes-192-ecb, aes-256-cbc, aes-256-ecb.

Nope, none of them work. Could be that some other cipher would work. Or it might not. FAILURE #3.

I conclude that while blockchain.info is a nice service, it's not ready for prime time until there is an easy way to actually access your backups while the site is down (which, apart from the obvious risk of a warhead or an asteroid hitting the server, happens occasionally because of a regular DDOS). Perhaps the backups should come with instructions on how to decrypt them?
1714694375
Hero Member
*
Offline Offline

Posts: 1714694375

View Profile Personal Message (Offline)

Ignore
1714694375
Reply with quote  #2

1714694375
Report to moderator
1714694375
Hero Member
*
Offline Offline

Posts: 1714694375

View Profile Personal Message (Offline)

Ignore
1714694375
Reply with quote  #2

1714694375
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714694375
Hero Member
*
Offline Offline

Posts: 1714694375

View Profile Personal Message (Offline)

Ignore
1714694375
Reply with quote  #2

1714694375
Report to moderator
1714694375
Hero Member
*
Offline Offline

Posts: 1714694375

View Profile Personal Message (Offline)

Ignore
1714694375
Reply with quote  #2

1714694375
Report to moderator
1714694375
Hero Member
*
Offline Offline

Posts: 1714694375

View Profile Personal Message (Offline)

Ignore
1714694375
Reply with quote  #2

1714694375
Report to moderator
John (John K.)
Global Troll-buster and
Legendary
*
Offline Offline

Activity: 1288
Merit: 1225


Away on an extended break


View Profile
April 23, 2013, 10:30:11 AM
 #2

Google 'import blockchain wallet'.
Gave me this: https://multibit.org/help_importingPrivateKeys.html

Apparently multibit can also import blockchain.info's wallet - although I don't recommend storing anything significant long-term at blockchain.info.
Ditto
Sr. Member
****
Offline Offline

Activity: 330
Merit: 250


View Profile
April 23, 2013, 10:46:19 AM
 #3

Attempt 1: I tried blockchain.info's own decrypt tool (https://blockchain.info/DecryptWallet.html) before, and it worked, but in the doomsday scenario it's gone as well. Unless it used a HTML5 cache manifest and is cached on my machine. Which is not likely. FAILURE #1.

Keep a local copy of it.

Code:
wget http://blockchain.info/DecryptWallet.html
aes1 (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10



View Profile
April 23, 2013, 10:49:14 AM
 #4

As a end note: with some more patience I would have found this thread, which has a link to some python code that supposedly performs the decrypting.

https://bitcointalk.org/index.php?topic=93040.0

It was short enough to read and verify that it doesn't seem to do anything too malevolent. Too bad I can't run it, since it reports "ImportError: No module named Crypto.Cipher". And finding out how to install python crypto modules -- well, if I had my life savings in blockchain.info's wallet, I just might have the time and patience how to do it...

But the point, I think, is that wallet backups - any wallet backups in the bitcoin ecosystem, not just those from blockchain.info - should be in a easily readable standard format, decipherable by (relatively) standard tools. If you have the password, you should be able to open them even if the original service provider hasn't been around in ages.
aes1 (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10



View Profile
April 23, 2013, 10:53:49 AM
 #5

Keep a local copy of it.

Code:
wget http://blockchain.info/DecryptWallet.html

That's probably the best way to prepare for the future right now. Will be placing that next to my wallet backups, just in case.
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
*
Offline Offline

Activity: 1316
Merit: 1043

👻


View Profile
April 23, 2013, 10:58:51 AM
 #6

Just store your private keys securely.
piuk
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
April 23, 2013, 12:03:08 PM
 #7

Instructions on how to restore a backup offline can be found by clicking the "Download Backup" button on the login page.



The chrome extension (http://blockchain.info/wallet/chrome-extension) will also work offline in as far as allowing the export of your private keys but the correct balance and transactions will not be shown.

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!