I am looking for an example of an instance where we import the Python getpass library, enter our password, and the password does not echo to the terminal.
Here is an example where it does echo the password to the terminal:
$ python
>>> import getpass
>>> getpass.GetPassWarning
<class 'getpass.GetPassWarning'>
>>> getpass.getpass(stream=None)
Password:
'hello'
>>>
Can someone give an example where it does not echo to the terminal?
Thanks!
my_pwd = getpass.getpass(stream=None)