mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
Use getpass for whitelist setup passphrase input
Former-commit-id: cf2b51588b2f79183e2bd263b4c3fa76d99b2b4e Former-commit-id: 03b555137cbf646bbb22893d414a43fb3cd4753a
This commit is contained in:
+2
-1
@@ -402,7 +402,8 @@ def sync():
|
|||||||
# PORT START WHITELIST-SERVER
|
# PORT START WHITELIST-SERVER
|
||||||
# takes input from the user to set up quick-unlock password
|
# takes input from the user to set up quick-unlock password
|
||||||
def whitelist_setup():
|
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)
|
_half_length = int(len(_gpg_password_temp)/2)
|
||||||
try:
|
try:
|
||||||
_short_password_length = int(input(f"\nquick unlock pin length (must be half the length of gpg password or "
|
_short_password_length = int(input(f"\nquick unlock pin length (must be half the length of gpg password or "
|
||||||
|
|||||||
Reference in New Issue
Block a user