Reputation: 2510
The standard way to enter a password in Python without echoing it is using getpass.getpass().
However,it doesn't support clipboard input (ctrl-V), which is needed when dealing with complex, highly secure passwords.
Has anyone ever come up with a workaround (get the password silently from crtl-V)?
Thanks!
R.
Upvotes: 3
Views: 1190
Reputation: 589
It is possible to right click paste from clipboard into the command prompt as an alternative.
Unfortunately getpass.getpass()
uses getwch()
from Windows C, which does not allow CTRL+C
to be read.
Upvotes: 6