osx - Hide password in python using getpass.getpass() -
when type
>>> passwd = getpass.getpass()
into python 2.7 shell, in idle, result:
warning (from warnings module): file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/getpass.py", line 55 passwd = fallback_getpass(prompt, stream) getpasswarning: can not control echo on terminal. warning: password input may echoed. password:
then when type password, isn't hidden. need send variable, can sha using sha module , compare 'shaed' original.
pass python keyword . please change
password = getpass.getpass()
then run shell/console
Comments
Post a Comment