generate key properly
This commit is contained in:
parent
90b0d1ccef
commit
d0e38ace0e
|
@ -8,7 +8,7 @@ if (not os.path.exists('.env')):
|
||||||
print('No .env file found. Please create a dotenv to proceed.');
|
print('No .env file found. Please create a dotenv to proceed.');
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
|
||||||
key_bytes = secrets.token_bytes(32);
|
key_bytes = secrets.token_bytes(32 * 8);
|
||||||
dotenv_text = '';
|
dotenv_text = '';
|
||||||
|
|
||||||
with open('.env', 'tr', encoding='utf-8') as f:
|
with open('.env', 'tr', encoding='utf-8') as f:
|
||||||
|
|
Loading…
Reference in New Issue