nthdimtech / signet-cli

Command line interface for Signet
GNU General Public License v3.0
4 stars 4 forks source link

Hide password input #5

Open sotpapathe opened 6 years ago

sotpapathe commented 6 years ago

When entering a password, all input characters appear in plaintext. For example

signet-cli version 0.0.4

Enter password:password

This could pose a security risk. After some searching I did not find any platform independent way to hide terminal input. I plan to create a pull request for Linux but I have no MacOS or Windows systems available.

espoelstra commented 5 years ago

For Linux or most POSIX shells I believe you can use stty to control the echo on/off.

dragon788 commented 5 years ago

This may be useful? https://stackoverflow.com/a/6899073