Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions generate_strong_password.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import random
import string

def generate_strong_password(length=12):
characters = string.ascii_letters + string.digits + string.punctuation
strong_password = ''.join(random.choice(characters) for _ in range(length))
return strong_password

# Example usage: Generate a strong password with default length (12 characters)
password = generate_strong_password()
print("Generated Strong Password:", password)