Read password from stdin [duplicate]

>>> import getpass
>>> pw = getpass.getpass()

Leave a Comment