Bitcoin Forum
October 23, 2018, 12:43:18 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitcoind Password Prompt (ala SSH, mySQL, etc.)?  (Read 516 times)
Envrin
Sr. Member
****
Offline Offline

Activity: 318
Merit: 250



View Profile
May 21, 2014, 05:30:49 PM
 #1


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?

1540298598
Hero Member
*
Offline Offline

Posts: 1540298598

View Profile Personal Message (Offline)

Ignore
1540298598
Reply with quote  #2

1540298598
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1540298598
Hero Member
*
Offline Offline

Posts: 1540298598

View Profile Personal Message (Offline)

Ignore
1540298598
Reply with quote  #2

1540298598
Report to moderator
1540298598
Hero Member
*
Offline Offline

Posts: 1540298598

View Profile Personal Message (Offline)

Ignore
1540298598
Reply with quote  #2

1540298598
Report to moderator
cozz
Member
**
Offline Offline

Activity: 61
Merit: 10


View Profile
May 21, 2014, 06:10:45 PM
 #2

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.

1cozzwyCJvDiyBA8zXGJ1qxtrd5b4i1nB
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 250


View Profile
May 21, 2014, 06:53:00 PM
 #3

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.

Bitwasp Developer.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!