Ever been struck in a situation when you wanted to get a users password information at the command line and realized that raw_input() would simply show away the password to all onlookers? I was . a little bit of digging found me the solution for it. In python there is this less talked, yet awesome library called get_pass that will do the trick. so how to use it ??
>>> import getpass
>>>a = getpass.getpass("please enter password")
please enter password
>>>a = "the password you typed"
Love the batteries loaded concept of python. if this were anyother language i would have to have been figuring out input and output streams instead of concentrating on the problem at hand.
>>> import getpass
>>>a = getpass.getpass("please enter password")
please enter password
>>>a = "the password you typed"
Love the batteries loaded concept of python. if this were anyother language i would have to have been figuring out input and output streams instead of concentrating on the problem at hand.