Could someone tell me how I can program a password entry with tcl (not tk) ?
Here is my code:
puts -nonewline stdout "USER:"
flush stdout
gets stdin USER
puts -nonewline stdout "PASSWORD:"
flush stdout
gets stdin PASSWORD
But I would want to be able to enter the password without echo'ing the characters, and keep it secret/encrypted from the display. gets is not enough in this matter.
Here is my code:
puts -nonewline stdout "USER:"
flush stdout
gets stdin USER
puts -nonewline stdout "PASSWORD:"
flush stdout
gets stdin PASSWORD
But I would want to be able to enter the password without echo'ing the characters, and keep it secret/encrypted from the display. gets is not enough in this matter.