RE: Password prompt with mask

2008-08-05 Thread Neuberger, Sheldon N.
> Could I write my own if one does not exist? Take a look at the getpass.py module. It's very short. The windows version of the getpass function can be trivially modified to echo something. The unix version is just as short but a bit more complicated. def win_getpass(prompt='Password: ', stream=N

Password prompt with mask

2008-08-05 Thread Robert Dailey
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 somethin