Skip to content

Commit

Permalink
Made generated passwords to include digits.
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTheCoder committed Dec 5, 2022
1 parent ef04ea1 commit 46bd1a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified PasswordGenerator/__pycache__/logic.cpython-310.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion PasswordGenerator/logic.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import secrets
import string

characters = string.ascii_letters + string.punctuation
characters = string.ascii_letters + string.punctuation + string.digits

def GeneratePassword(requested_length) -> str:
'''
Checks if the requested requested_length is valid,
returns a password if it is,
raises a value error if it's not.
'''
print(characters)

requested_length = min(requested_length, 100)

Expand Down

0 comments on commit 46bd1a5

Please sign in to comment.