From 109141a266dac73817e5e2fefc58dd5710cda664 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 6 Nov 2022 13:25:35 -0500 Subject: [PATCH] Removed '~' from generated filename character pool to avoid issues with quick-unlock --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 40c8710..f85865d 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -104,7 +104,7 @@ def string_gen(_complexity, _length): # generates and returns a random string b _character_pool = string.ascii_letters + string.digits elif _complexity == 'f': _character_pool = string.digits + string.ascii_letters + string.punctuation.replace('/', '').replace('\\', '')\ - .replace("'", '').replace('"', '').replace('`', '') + .replace("'", '').replace('"', '').replace('`', '').replace('~', '') else: _character_pool = string.digits + string.ascii_letters + string.punctuation _min_special, _special = round(.2 * _length), 0