mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 15:10:22 +00:00
Update password_generator.py
This commit is contained in:
parent
d322a32fcc
commit
9e9a13d1e4
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class PasswordGenerator:
|
|||
lowercase_letters = string.ascii_lowercase # all lowercase letters
|
||||
uppercase_letters = string.ascii_uppercase # all uppercase letters
|
||||
digits = string.digits # all digits
|
||||
special_symbols = "!@#$" # all special symbols
|
||||
special_symbols = "!#" # all special symbols
|
||||
|
||||
# get 4 random characters from each category
|
||||
password = [
|
||||
|
@ -79,4 +79,4 @@ class PasswordGenerator:
|
|||
random.shuffle(password_list)
|
||||
|
||||
# Convert list to string
|
||||
return ''.join(password_list)
|
||||
return ''.join(password_list)
|
||||
|
|
Loading…
Reference in a new issue