python - When typing can you change what the text is displayed as? -
this question has answer here:
- read password stdin 2 answers
so making program test password , wondering, when user enters password can stop password showing type in console/gui?
python has covered built-in library:
>>> import getpass >>> pw = getpass.getpass() edit: mentioned @matth, won't echo asterisks (*) while user types password.
Comments
Post a Comment