Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: begining_summer on April 30, 2013, 12:14:37 PM



Title: bitcoin-qt: how to check my passphrase without transferring money
Post by: begining_summer on April 30, 2013, 12:14:37 PM
Hi!

I have several wallets. I encrypted my wallets.

I would like to check my paraphrases sometimes to ensure that I do not forget it.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: jackjack on April 30, 2013, 12:18:29 PM
You can use pywallet (https://github.com/joric/pywallet), but it sure is not the more practical way to do that
Maybe an rpc command?


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: CIYAM on April 30, 2013, 12:18:47 PM
If you are not worried that someone might *observe* your password if it appears on the screen then you could use Help->Debug then go to the Console and issue the RPC command: walletpassphrase <your passphrase here> 1

If you don't want it to be visible then perhaps try by sending funds to yourself?


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: begining_summer on April 30, 2013, 12:49:13 PM
Thanks!

debug window is good for me.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: nevafuse on April 30, 2013, 01:44:53 PM
Also the "change passphrase" option can be used to check your passphrase which is a menu option in bitcoin-qt.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: CIYAM on April 30, 2013, 01:59:06 PM
Also the "change passphrase" option can be used to check your passphrase which is a menu option in bitcoin-qt.

Good one (don't know how I missed that).


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: begining_summer on May 02, 2013, 11:58:00 PM
Also the "change passphrase" option can be used to check your passphrase which is a menu option in bitcoin-qt.

It's not so convenient because I would not prefer to change current passphase.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: CIYAM on May 03, 2013, 01:47:01 AM
It's not so convenient because I would not prefer to change current passphase.

You can't change it to what it currently is?


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: 2112 on May 03, 2013, 03:39:42 AM
You can't change it to what it currently is?
It is not the same as leaving it unchanged. The key streetching parameter is recomputed afresh with each passphrase change, and this may be undesirable.

I simply tried to send more coins that the wallet contains in total: I would safely get an error message stating the above after the successfull decryption.

I haven't tried the most recent code, I'm still running the older versions, the code may have changed.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: apetersson on May 03, 2013, 07:21:06 AM
when using "sign message" you are prompted for the password. also if you create a new address.

if you just want to check if you still know it these options are most simple.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: flemal123 on June 01, 2014, 01:28:18 PM
I have the same question as the OP.  I just fired up bitcoin-qt and encrypted my wallet.  I am pretty sure the action succeeded, I see the lock on the lower right hand corner of the dialog. Now without sending any money I would like to trigger bitcoin-qt to prompt me for my passphrase, just as a sanity check.

when using "sign message" you are prompted for the password. also if you create a new address.

I have also read elsewhere that bitcoin-qt prompts you for your passphrase when you create a new address, but that is not what I observe.  bitcoin-qt lets me create a new address and it does not ask me for my passphrase.  So is it true or not that bitcoin-qt prompts you for your passphrase when you create a new address?

Also,
- I told bitcoin-qt to use a different data directory, and now when it starts up it automatically loads from the new directory.  Where does it remember that path?
- How can I prevent bitcoin-qt from downloading the blockchain at startup?  In the help I see various startup options for the network, so I assume I could just pass in an invalid value to one of those parameters, in order to break bitcoin-qt's network connection, is that the best way?
- If I want to wipe the slate clean and start again, should I delete just the wallet file, or the entire data directory?  After the blockchain is downloaded, where does that get stored, in wallet.dat?

Many Thanks.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: DannyHamilton on June 01, 2014, 01:42:08 PM
I have also read elsewhere that bitcoin-qt prompts you for your passphrase when you create a new address, but that is not what I observe.  bitcoin-qt lets me create a new address and it does not ask me for my passphrase.  So is it true or not that bitcoin-qt prompts you for your passphrase when you create a new address?


Older versions used to.

The most recent version does not.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: CIYAM on June 01, 2014, 01:45:59 PM
Can't you just "unlock the wallet" to test?

(only just started playing around with raw txs again today so haven't done this stuff for a while)

BTW - For anyone that has downloaded the CIYAM Safe I have updated it today due to a JSON issue that was in the "signtx" script (never received a bug report so am guessing no-one else has come across the issue yet).


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: flemal123 on June 01, 2014, 03:05:24 PM
Older versions used to.

The most recent version does not.
Ah, cool, many thanks for that confirmation.

Can't you just "unlock the wallet" to test?
Well, let's see.  In your copy of bitcoin-qt, do you see an item "unlock the wallet" in the menu?  I don't see that in mine.

That is what is so disconcerting, there is not much indication that the wallet is locked at all.  After encrypting the wallet, I expected that at the very latest on restarting bitcoin-qt I would be prompted for my passphrase.  I was not, which means that someone else could steal my wallet.dat and without even decrypting it load it into bitcoin-qt.

I suppose that the info that bitcoin-qt displays on the wallet without the passphrase is the same info that is publicly available about that wallet.  And I suppose that bitcoin-qt prompts for the passphrase only when absolutely necessary in order to avoid unnecessary exposure to keyboard logging attacks.

Also,
- I told bitcoin-qt to use a different data directory, and now when it starts up it automatically loads from the new directory.  Where does it remember that path?
- How can I prevent bitcoin-qt from downloading the blockchain at startup?  In the help I see various startup options for the network, so I assume I could just pass in an invalid value to one of those parameters, in order to break bitcoin-qt's network connection, is that the best way?
- If I want to wipe the slate clean and start again, should I delete just the wallet file, or the entire data directory?  After the blockchain is downloaded, where does that get stored, in wallet.dat?


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: Newar on June 01, 2014, 04:38:19 PM
That is what is so disconcerting, there is not much indication that the wallet is locked at all.  

Do you see the lock symbol in the lower right corner?


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: flemal123 on June 01, 2014, 05:34:55 PM
That is what is so disconcerting, there is not much indication that the wallet is locked at all. 
Do you see the lock symbol in the lower right corner?

I have the same question as the OP.  I just fired up bitcoin-qt and encrypted my wallet.  I am pretty sure the action succeeded, I see the lock on the lower right hand corner of the dialog. Now without sending any money I would like to trigger bitcoin-qt to prompt me for my passphrase, just as a sanity check.


Title: Re: bitcoin-qt: how to check my passphrase without transferring money
Post by: Newar on June 01, 2014, 05:56:33 PM
That is what is so disconcerting, there is not much indication that the wallet is locked at all. 
Do you see the lock symbol in the lower right corner?

I have the same question as the OP.  I just fired up bitcoin-qt and encrypted my wallet.  I am pretty sure the action succeeded, I see the lock on the lower right hand corner of the dialog. Now without sending any money I would like to trigger bitcoin-qt to prompt me for my passphrase, just as a sanity check.


And that's not indication enough?

Regardless every time you try to send it will ask for your passphrase. If your wallet was not encrypted it wouldn't ask. You can then cancel at that point. Or sign a message to test the process completely, as was mentioned.

You are correct that anyone could load that wallet.dat and see the same info about the balance and transactions etc.