raw_input on password

Richard Jones rjones at ekit-inc.com
Mon Feb 25 19:15:56 EST 2002


On Tue, 26 Feb 2002 09:37, Michael P. Soulier wrote:
>     Hey people.
>
>     My apologies if this has been asked before. I didn't see it...
>
>     Is there a way to get raw_input() to mask the response, so it can be
> used to request a password safely?

Use the getpass module:

   http://www.python.org/doc/current/lib/module-getpass.html


      Richard




More information about the Python-list mailing list