We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getpass.getpass returns the password as plain text, source below (Windows implementation)
def win_getpass(prompt='Password: ', stream=None): """Prompt for password with echo off, using Windows getch().""" if sys.stdin is not sys.__stdin__: return fallback_getpass(prompt, stream) for c in prompt: msvcrt.putwch(c) pw = "" while 1: c = msvcrt.getwch() if c == '\\r' or c == '\\n' break if c == '\\003': raise KeyboardInterrupt if c == '\\b': pw = pw[:-1] else: pw = pw + c msvcrt.putwch('\\r') msvcrt.putwch('\\n') return pw
A more secure practice would be to use the system's keyring to store credentials.
The text was updated successfully, but these errors were encountered:
Will try to integrate this when I get time. Thanks for the suggestion!!!
Sorry, something went wrong.
keyring
No branches or pull requests
getpass.getpass returns the password as plain text, source below (Windows implementation)
A more secure practice would be to use the system's keyring to store credentials.
The text was updated successfully, but these errors were encountered: