Hidding Character as you type
Andrew Clark
ryaku711 at gmail.com
Thu Sep 22 12:16:53 EDT 2016
I'm looking for a way to either completely hide character as you type in command line or add ***** to each character as you for simple password obscurity. I've tried getpass.getpass() however the characters still show up on the screen as you type it. Can anyone help? I'm using python 2.7 on windows.
host = 'ldxnis12.dx.deere.com'
username = raw_input("Enter username: ")
password = raw_input("Enter password: ")
Output:
Enter username: username
Enter password: iwanthistonotshowup
More information about the Python-list
mailing list