Files
CyberPanel/plogical/randomPassword.py

6 lines
200 B
Python
Raw Normal View History

2019-12-10 22:34:39 +05:00
import string
2025-04-21 02:41:12 +05:00
import secrets
2017-10-24 19:16:36 +05:00
def generate_pass(length=14):
2025-04-21 02:41:12 +05:00
chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
return ''.join(secrets.choice(chars) for _ in range(length))