Skip to content

Commit

Permalink
Removed '~' from generated filename character pool to avoid issues wi…
Browse files Browse the repository at this point in the history
…th quick-unlock

Former-commit-id: bcb77c5 [formerly 109141a]
Former-commit-id: b7bd413
  • Loading branch information
rwinkhart committed Nov 6, 2022
1 parent 9d1f0a0 commit 3a6655e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sshyp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a6655e

Please sign in to comment.