mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 07:46:35 +01:00
6 lines
200 B
Python
6 lines
200 B
Python
import string
|
|
import secrets
|
|
|
|
def generate_pass(length=14):
|
|
chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
|
|
return ''.join(secrets.choice(chars) for _ in range(length)) |