mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Add generate_secrepts.py
This commit is contained in:
parent
d95a1c4e48
commit
30365a1bf3
1 changed files with 4 additions and 0 deletions
4
advlabdb/scripts/setup/generate_secrets.py
Normal file
4
advlabdb/scripts/setup/generate_secrets.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import secrets
|
||||||
|
|
||||||
|
print(f"SECRET_KEY={secrets.SystemRandom().getrandbits(128)}")
|
||||||
|
print(f"SECURITY_PASSWORD_SALT={secrets.token_hex()}")
|
Loading…
Reference in a new issue