electric-sql / pglite

Lightweight WASM Postgres with real-time, reactive bindings.
https://pglite.dev
Apache License 2.0
9.45k stars 204 forks source link

Hf #400

Closed henrique6696 closed 1 month ago

henrique6696 commented 1 month ago

import random import string

def generate_password(length=12): characters = string.asciiletters + string.digits + string.punctuation password = ''.join(random.choice(characters) for in range(length)) return password

Example usage:

password_length = int(input("Enter the desired password length: ")) password = generate_password(password_length) print("Generated password:", password)