fnp
/
cas.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0246b21b673300d77458ff72c5afc12a3b2d9631
[cas.git]
/
src
/
ftp
/
utils.py
1
import secrets
2
import string
3
4
def generate_password(length=10):
5
chars = string.ascii_letters + string.digits + string.punctuation
6
return ''.join(secrets.choice(chars) for i in range(length))