I am writing a Python program that requires a user to input their gmail usernames and passwords. When the user types in their password, I want the characters to be displayed as asterisks. Is this possible for a command-line program?
+4
A:
getpass.getpass() doesn't show asterisks but instead suppresses all output, which is expected behavior on some systems.
Ignacio Vazquez-Abrams
2010-02-22 02:56:20
Thank you. That isn't what I was looking for, but it works just as well.
ErikT
2010-02-22 03:25:26