1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-22 23:51:03 +00:00
AdvLabDB/advlabdb/scripts/setup/generate_secrets.py
2022-05-17 12:44:17 +02:00

4 lines
134 B
Python

import secrets
print(f"SECRET_KEY={secrets.SystemRandom().getrandbits(128)}")
print(f"SECURITY_PASSWORD_SALT={secrets.token_hex()}")