January 25th, 2004, 08:51 AM
[input] password input for the shell
I want to get a password with my program in the command line. Is there a function to get a password without show it in the shell like , for example, input_passwd() ?
January 25th, 2004, 11:45 AM
Yeah there is, what you're looking for would be named 'getpass' i.e.
You can use this just like raw_input() but it shouldn't echo what the user types...
>>> import getpass
>>> passwd = getpass.getpass()
January 25th, 2004, 01:26 PM
Thank you, it works more securely now
January 25th, 2004, 02:34 PM