From 70ee2c6d04ca3b3223aafe9459b65a6e5d203e6e Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 12 Oct 2022 14:57:33 -0400 Subject: [PATCH] Respect the user-specifed quick-unlock passphrase length --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 122c080..899e62d 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -526,7 +526,7 @@ def whitelist_setup(): # takes input from the user to set up quick-unlock passw f"({int(_half_length)}): ")) _i, _quick_unlock_password, _quick_unlock_password_excluded = 0, '', '' for _char in _gpg_password_temp: - if _i % 2 == 1 and _i < _short_password_length: + if _i % 2 == 1 and _i < _short_password_length*2: _quick_unlock_password += _char else: _quick_unlock_password_excluded += _char