Password prompt with mask

Robert Dailey rcdailey at
Tue Aug 5 19:13:53 CEST 2008


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: <>

More information about the Python-list mailing list