mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-04 08:07:15 -04:00
Removed '~' from generated filename character pool to avoid issues with quick-unlock
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ def string_gen(_complexity, _length): # generates and returns a random string b
|
|||||||
_character_pool = string.ascii_letters + string.digits
|
_character_pool = string.ascii_letters + string.digits
|
||||||
elif _complexity == 'f':
|
elif _complexity == 'f':
|
||||||
_character_pool = string.digits + string.ascii_letters + string.punctuation.replace('/', '').replace('\\', '')\
|
_character_pool = string.digits + string.ascii_letters + string.punctuation.replace('/', '').replace('\\', '')\
|
||||||
.replace("'", '').replace('"', '').replace('`', '')
|
.replace("'", '').replace('"', '').replace('`', '').replace('~', '')
|
||||||
else:
|
else:
|
||||||
_character_pool = string.digits + string.ascii_letters + string.punctuation
|
_character_pool = string.digits + string.ascii_letters + string.punctuation
|
||||||
_min_special, _special = round(.2 * _length), 0
|
_min_special, _special = round(.2 * _length), 0
|
||||||
|
|||||||
Reference in New Issue
Block a user