Bitcoin Forum
May 09, 2024, 04:46:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind Password Prompt (ala SSH, mySQL, etc.)?  (Read 610 times)
Envrin (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



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?

Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715273181
Hero Member
*
Offline Offline

Posts: 1715273181

View Profile Personal Message (Offline)

Ignore
1715273181
Reply with quote  #2

1715273181
Report to moderator
cozz
Member
**
Offline Offline

Activity: 61
Merit: 15


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: 275


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!