Files

13 lines
269 B
Python
Executable File

#!/usr/bin/env python3
import os
from passlib.context import CryptContext
crypt_context = CryptContext(
schemes=["pbkdf2_sha512", "plaintext"], deprecated=["plaintext"]
)
password = os.environ.get("ODOO_PASSWORD") or "admin"
print(crypt_context.hash(password))