Bitcoin Forum
November 20, 2017, 11:37:26 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitcoind Password Prompt (ala SSH, mySQL, etc.)?  (Read 500 times)
Envrin
Sr. Member
****
Offline Offline

Activity: 307


Flixxo - Watch, Share, Earn!


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?


X       ▄▄█████████▄▄
    ▄██▀▀         ▀▀██▄
  ▄██▀              ▀██▄
 ▄██     ██▄▄          ██▄
▄██      █████▄▄        ██▄
██       ████████▄▄      ██
██       ███████████▄    ██
██       ██████████▀     ██
▀██      ███████▀       ██▀
 ▀██     ████▀         ██▀
  ▀██▄   █▀          ▄██▀
    ▀██▄▄         ▄▄██▀
       ▀▀█████████▀▀
.flixxo    X▄████████████████████▄
██████████████████████
██████████████████████
████████████▀▀███████
█████▀████░░░░░░▄████
█████░░░░░░░░░░▄█████
█████▄░░░░░░░░░░██████
██████░░░░░░░░░███████
███████░░░░░░▄████████
████▄▄░░░░▄▄██████████
██████████████████████
██████████████████████
▀████████████████████▀
▄████████████████████▄
██████████████████████
█████████▀█▀██████████
██████▀▀▀▀▀████████
██████▄▄░░▄▄▄░░███████
████████░░███░░███████
████████░░░░░░▀███████
████████░░███▄░░██████
██████▀▀░░▀▀▀░░░██████
██████▄▄▄▄▄▄███████
█████████▄█▄██████████
██████████████████████
▀████████████████████▀
X[[]]X
1511221046
Hero Member
*
Offline Offline

Posts: 1511221046

View Profile Personal Message (Offline)

Ignore
1511221046
Reply with quote  #2

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

Posts: 1511221046

View Profile Personal Message (Offline)

Ignore
1511221046
Reply with quote  #2

1511221046
Report to moderator
cozz
Member
**
Offline Offline

Activity: 61


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


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!