Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Envrin on May 21, 2014, 05:30:49 PM



Title: bitcoind Password Prompt (ala SSH, mySQL, etc.)?
Post by: Envrin on May 21, 2014, 05:30:49 PM

Is there any reason bitcoind doesn't have this?  Right now, when you unlock the wallet with 'walletpassphrase' command, you have to enter the password on the same line in plain text.  If bash history is enabled on the server (which is default on all servers), the wallet password then ends up in a plain text file for all to see.

Are there any plans to implement the same type of password input as standard SSH, mySQL, etc.?  So you could type "walletpassphrase 30" for example instead, and next line prompts for password without any keyboard input being shown in the terminal screen.  Is that on the horizon at all?



Title: Re: bitcoind Password Prompt (ala SSH, mySQL, etc.)?
Post by: cozz on May 21, 2014, 06:10:45 PM
See https://github.com/bitcoin/bitcoin/pull/4144

The pull request has been closed. So it will not be implemented in bitcoind.
Apparently you should use "contrib/bitrpc/bitrpc.py walletpassphrase" instead.


Title: Re: bitcoind Password Prompt (ala SSH, mySQL, etc.)?
Post by: fbueller on May 21, 2014, 06:53:00 PM
Write a bash script to prompt you to type in the password. Won't be saved to bash_history then. You could also store the timeout as an environment variable so your wrapper script knows to prompt again.