Re: hashing out typed passwords



In alt.os.linux Ray <raycook@xxxxxxx>:
[..]

I have a script that asks for a password to be entered so it can be
used later on in the script. This works great execpt tyat you can see
the password in plain text when you have enterd it on screen. What i
would really like it to do is to echo ****** as i type the password.
That way nobody should be able to scroll up the screen buffer to get
the password.

$ read -s -p "enter password> "
enter password>
$ echo $REPLY
blah

No stars, they would just tell about the length of the password.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@xxxxxxxxxx | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 306: CPU-angle has to be adjusted because of
vibrations coming from the nearby road
.



Relevant Pages

  • Re: hashing out typed passwords
    ... This works great execpt tyat you can see ... the password in plain text when you have enterd it on screen. ... That way nobody should be able to scroll up the screen buffer to get ...
    (alt.os.linux)
  • Re: Hashing out tyoed passwords
    ... used later on in the script. ... This works great execpt tyat you can see ... the password in plain text when you have enterd it on screen. ...
    (comp.unix.shell)
  • Re: Hashing out tyoed passwords
    ... This works great execpt tyat you can see ... the password in plain text when you have enterd it on screen. ... That way nobody should be able to scroll up the screen buffer to get ...
    (comp.unix.shell)