Python Password Generator
by john_doe 路 Mar 16, 2026 路
Python
路
Automation
import random
import string
def generate_password(length=12):
chars = string.ascii_letters + string.digits + "!@#$%^&*"
return "".join(random.choice(chars) for _ in range(length))
print(generate_password(16))
4.67 / 5 路 3 ratings
Login to rate.