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

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -