Solved Can you make password visible as asterisks (*) in the tty?

In short, no.

Not showing the password on tty is implemented by turning the terminal's echo mode to off.
As the terminal do not have echo back mode changing the characters to '*', we need to implement in every program that receives a password on a terminal to echo back password input in '*' or backspace if it is input.
 
Not easy to do. You can prevent them from being echo'd on screen ( stty -echo), but there isn't anything that would show the familiar asterisks when you enter a password. Possible to do but requires quite a bit of scripting to accomplish.

Or is it specific to some tool? Or scripting language?
 
I remember back in the teletype days where some systems would overwrite a pattern of characters and backspaces on the paper so that as each char was typed it would blob into the ink already in that character position. This post took me waaaayyyy back for a moment.
 
Back
Top