Getting Password from User

Tom Santos tomsantos at email.com
Sun Jun 18 15:49:01 EDT 2000


I'm trying to get a username and password from a user so that I can create
an FTP connection.  I'm using raw_input() to get the username but it's not
acceptable to get their password.  If I use raw_input() to get the password,
the user's password is echoed to the screen.  Is there any way to make it so
that their password is not shown entirely, or characters like '*' are
displayed instead of the characters in their password?

Thanks,

-Tom-

tomsantos at email.com






More information about the Python-list mailing list