0

When I type

>>> passwd = getpass.getpass()

Into the python 2.7 shell, in IDLE, I get the 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 the terminal.
Warning: Password input may be echoed.
Password:

Then when I type the password, it isn't hidden. I need to send it to a variable, so I can SHA it using the sha module and compare it with the 'SHAed' original.

2
  • 1
    Are you running it in idle? stackoverflow.com/questions/21264701/… Commented May 14, 2015 at 6:01
  • Also, pass is a keyword. Commented May 14, 2015 at 6:01

1 Answer 1

1

pass is a python keyword . please change that something like

password = getpass.getpass()

Then run it from shell/console

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.