mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
8 lines
215 B
Python
8 lines
215 B
Python
import secrets
|
|
|
|
|
|
def gen_password(
|
|
length,
|
|
charset="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"
|
|
):
|
|
return "".join([secrets.choice(charset) for _ in range(0, length)])
|