I need something like raw_input, but without displaying the text you are typing.
Also I tried getpass, but it still displays what I just typed.
getpass work very well either in command prompt or in python script.
import getpass
x = getpass.getpass("Input something: ")
print x
getpass() doesn't work in IDLE. Try it in command prompt or on the terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With