Password prompt with mask

Robert Dailey rcdailey at gmail.com
Tue Aug 5 13:13:53 EDT 2008


Hi,

I'm looking for something simple that I can use to obtain passwords from the
user. Something like input(), but with an option to set the mask character.
So if I set it to "*", then all the user will see is: ****** as they type
their password. I know about getpass.getpass(), but I want something that
echos. Is this possible? Could I write my own if one does not exist?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080805/e6d0608d/attachment.html>


More information about the Python-list mailing list