raw_input on password

John Machin sjmachin at lexicon.net
Mon Feb 25 22:08:09 EST 2002


"Michael P. Soulier" <msoulier at nortelnetworks.com_.nospam> wrote in message news:<slrna7lf63.4pb.msoulier at pmerd071.ca.nortel.com>...
> Hey people. 
> 
>     My apologies if this has been asked before. I didn't see it...

Funny how Google has its off days.
> 
>     Is there a way to get raw_input() to mask the response, so it can be used
> to request a password safely?
> 

Not as far as I can tell from reading the manual. There may be a
secret hidden argument which you could discover by reading the source
code. However I doubt it.

Completely off-topic w.r.t. your question, why don't you use the
getpass module?



More information about the Python-list mailing list