January 25th, 2004, 08:51 AM
-
[input] password input for the shell
Hello,
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() ?
thanks
January 25th, 2004, 11:45 AM
-
Yeah there is, what you're looking for would be named 'getpass' i.e.
Code:
>>> import getpass
>>> passwd = getpass.getpass()
...
>>>
You can use this just like raw_input() but it shouldn't echo what the user types...
Mark.
January 25th, 2004, 01:26 PM
-
Thank you, it works more securely now
Bye
January 25th, 2004, 02:34 PM
-
No problem.. 
Mark