January 25th, 2004, 09: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, 12:45 PM
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, 02:26 PM
Thank you, it works more securely now
January 25th, 2004, 03:34 PM