Bitcoin Forum
April 24, 2024, 01:00:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How I recovered my (sort of) lost encrypted wallet on bitcoin-qt client S/W  (Read 1124 times)
old c coder (OP)
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 21, 2013, 05:37:28 PM
Last edit: April 23, 2013, 11:07:21 PM by old c coder
 #1

Hello

I have bitcoin-qt version 0.8.1 (running on windows) and before encrypting the wallet, I had made backups of the wallet.dat file. Then sometime later I encrypted the wallet and wrote down and copied and pasted, I swear, to the wallet input form to encrypt. Never checked it, since I had no need to send BTCs anywhere.

Then I acquired some BTCs and was unable to create a second address in the wallet, which required entering the passphrase. No luck, it kept saying wrong passphrase. And now I couldn't send the BTCs either! I tried various near combinations, etc. no luck. I could see the transactions that put coins in, but I couldn't get them out!

I tried various backups of the encrypted wallet and these also failed, that I had made with each deposit of BTCs.

My only recourse was to try a wallet.dat backup from before I had encrypted it. Lo and behold, bitcoin-qt read the deposits from the blockchain (I presume?) and restored my now old unencrypted wallet to the current correct amount. And now I am able to send BTCs, etc.


Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
1713963617
Hero Member
*
Offline Offline

Posts: 1713963617

View Profile Personal Message (Offline)

Ignore
1713963617
Reply with quote  #2

1713963617
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713963617
Hero Member
*
Offline Offline

Posts: 1713963617

View Profile Personal Message (Offline)

Ignore
1713963617
Reply with quote  #2

1713963617
Report to moderator
1713963617
Hero Member
*
Offline Offline

Posts: 1713963617

View Profile Personal Message (Offline)

Ignore
1713963617
Reply with quote  #2

1713963617
Report to moderator
1713963617
Hero Member
*
Offline Offline

Posts: 1713963617

View Profile Personal Message (Offline)

Ignore
1713963617
Reply with quote  #2

1713963617
Report to moderator
Stoneysilence
Member
**
Offline Offline

Activity: 104
Merit: 10


View Profile
April 21, 2013, 05:40:48 PM
 #2

Hello

I have bitcoin-qt version 0.8.1 (running on windows) and before encrypting the wallet, I had made backups of the wallet.dat file. Then sometime later I encrypted the wallet and wrote down and copied and pasted, I swear, to the wallet input form to encrypt. Never checked it, since I had no need to send BTCs anywhere.

Then I acquired some BTCs and tried to create a second address in the wallet, which required entering the passphrase. No luck, it kept saying wrong passphrase. And now I couldn't send the BTCs either! I tried various near combinations, etc. no luck. I could see the transactions that put coins in, but I couldn't get them out!

I tried various backups of the encrypted wallet, that I had made with each deposit of BTCs. No luck on any of them.

I then tried a wallet.dat backup from before I had encrypted it. Lo and behold, bitcoin-qt read the deposits from the blockchain (I presume?) and restored my now old unencrypted wallet to the current correct amount. And now I am able to send BTCs, etc.

So if you have an old wallet.dat copy from before encrypting, you might try that! Hope it works.

Ron

Nice to know but that also means it's a security risk.
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
April 21, 2013, 05:51:06 PM
 #3

depends where you keep it i keep an unencrypted version of my wallet.dat on a pen drive

Foxpup
Legendary
*
Offline Offline

Activity: 4340
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 22, 2013, 02:57:35 AM
 #4

Not a risk if you keep that original wallet.dat file offline, on a separate dedicated USB thumb drive. And another for good luck in a different location!

You can now encrypt without fear of losing BTCs.
This is just plain wrong. This is probably the riskiest thing you can do with Bitcoin (besides use an unencrypted wallet with no backups). If you do this, you almost certainly will lose money, one way or another. There are two different ways you can lose money by doing this. First, and most obviously, anyone who gains access to one of your unencrypted backups will be able to steal your bitcoins.

Second, if you create a new address in your encrypted wallet (which, for technical reasons, also happens every time you send bitcoins), this new address will not be present in your backup wallet. Normally it would be, as the wallet generates 100 addresses in advance for exactly this reason (you can create up to 100 new addresses and they'll all be present in your backup, so you don't have to worry if your backup is a little bit out of date), but encrypting your wallet deletes these unused addresses and creates 100 new ones, to minimise the amount of money you stand to lose if a previous unencrypted backup gets stolen (ideally, it would delete all your address and replace them with new ones, but it can't delete the ones you're already using, because, well, you're using them). If you send bitcoins using your encrypted wallet, or create new addresses in your encrypted wallet, your unencrypted backup will not be able to recover all your bitcoins.

You have been warned.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
anderl
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500



View Profile
April 22, 2013, 03:01:54 AM
 #5

this is a major security risk.  If you ever sell the computer you have your wallet on  it wouldn't be too hard to recover the data off the drive that the dat file was on.  If it wasn't encrypted I could just recover the file catch it up to the network and transfer all your coins from your account.

This is a warning to everyone, physically destroy your hard drives.  A data wipe may not be enough.  If you do loose your wallet or your computer Immediately transfer your coins from it otherwise you run the risk of losing it all.
tlhonmey
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
May 26, 2013, 08:27:11 PM
 #6

It's not that big a security risk as long as you scrub the unencrypted wallet off of the drive (there are utilities for both Windows and Linux that will do this.)

You will run into trouble, however with the fact that the default wallet is only 100 addresses.

So, what I do, is use the bitcoind program's command-line option to increase the key pool size to a ridiculous size (say 400,000).  It will take a considerable amount of time to generate a wallet this big, but it will also take a long time to go through that many addresses.  It should just fit on a CD.  Create a CD iso image with the file and enhance it with DVDisaster for extra protection against degradation.  (You can find DVDisaster via google.)  Store it somewhere safe.  Like in your fire safe.  Then encrypt your wallet and scrub your drive.  When you get close to using up all the addresses, make a new wallet.  (But it will take a while with that many addresses.)
umairsaleem007
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile WWW
May 26, 2013, 08:29:46 PM
 #7

Thanks for the info.
saurey
Newbie
*
Offline Offline

Activity: 6
Merit: 0



View Profile
June 12, 2013, 11:44:34 PM
 #8

Equal security risk - forgetting your password and not having a backup. That's like having a pile of gold bars in a case made of unobtanium. You have the gold but you can't get to it...

Happened to me today lost 50+..
PeterB
Full Member
***
Offline Offline

Activity: 168
Merit: 100



View Profile WWW
June 12, 2013, 11:51:14 PM
 #9

Not a risk if you keep that original wallet.dat file offline, on a separate dedicated USB thumb drive. And another for good luck in a different location!

You can now encrypt without fear of losing BTCs.
This is just plain wrong. This is probably the riskiest thing you can do with Bitcoin (besides use an unencrypted wallet with no backups). If you do this, you almost certainly will lose money, one way or another. There are two different ways you can lose money by doing this. First, and most obviously, anyone who gains access to one of your unencrypted backups will be able to steal your bitcoins.

Second, if you create a new address in your encrypted wallet (which, for technical reasons, also happens every time you send bitcoins), this new address will not be present in your backup wallet. Normally it would be, as the wallet generates 100 addresses in advance for exactly this reason (you can create up to 100 new addresses and they'll all be present in your backup, so you don't have to worry if your backup is a little bit out of date), but encrypting your wallet deletes these unused addresses and creates 100 new ones, to minimise the amount of money you stand to lose if a previous unencrypted backup gets stolen (ideally, it would delete all your address and replace them with new ones, but it can't delete the ones you're already using, because, well, you're using them). If you send bitcoins using your encrypted wallet, or create new addresses in your encrypted wallet, your unencrypted backup will not be able to recover all your bitcoins.

You have been warned.

Thanks for this.

Mine bitcoins with you mind!  Play poker at Seals with Clubs!  Now with mixed games, stud games, and multiple variants of OFC!  These games are not offered on any other bitcoin poker site!  Sign up with me, PeterB, as your referral and I can help you with eBooks, strategy and more!  PM me for more details.
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!