From ebb12e731f0949b4231c168220d95bd0091a8d03 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 15 Jun 2023 09:23:37 -0400 Subject: [PATCH] Use getpass for whitelist setup passphrase input Former-commit-id: cf2b51588b2f79183e2bd263b4c3fa76d99b2b4e Former-commit-id: 03b555137cbf646bbb22893d414a43fb3cd4753a --- lib/sshyp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 16d27b3..659cb3b 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -402,7 +402,8 @@ def sync(): # PORT START WHITELIST-SERVER # takes input from the user to set up quick-unlock password def whitelist_setup(): - _gpg_password_temp = str(input('\nfull gpg passphrase: ')) + from getpass import getpass + _gpg_password_temp = str(getpass(prompt='\nfull gpg passphrase: ')) _half_length = int(len(_gpg_password_temp)/2) try: _short_password_length = int(input(f"\nquick unlock pin length (must be half the length of gpg password or "