Módulo Secreto Python para gerar strings seguros
import secrets
import string
alphabet = string.ascii_letters + string.digits
password = ''.join(secrets.choice(alphabet) for i in range(10))
print(password)
Yassin Zain