1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-14 21:40:43 +00:00
AdvLabDB/advlabdb/scripts/setup/generate_secrets.py

5 lines
134 B
Python
Raw Normal View History

2022-05-17 10:44:17 +00:00
import secrets
print(f"SECRET_KEY={secrets.SystemRandom().getrandbits(128)}")
print(f"SECURITY_PASSWORD_SALT={secrets.token_hex()}")