python 3.x - getpass is not working -
import getpass pw=getpass.getpass("enter password here: ") if (pw=="password"): print ("login successful") else: print ("sorry! password incorrect") i cannot understand error py3 compiler shows , password not hidden getpass
warning (from warnings module): file "c:\python36-32\lib\getpass.py", line 100 return fallback_getpass(prompt, stream) getpasswarning: can not control echo on terminal. warning: password input may echoed. enter password here: password login successful i typed password , not hidden
Comments
Post a Comment