mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 17:51:27 +03:00
mjs -> cjs
This commit is contained in:
8
scripts/keygen.js
Normal file
8
scripts/keygen.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const { randomBytes } = require('crypto');
|
||||
const { short } = require('leeks.js');
|
||||
|
||||
console.log(short(
|
||||
'Set the "DB_ENCRYPTION_KEY" environment variable to: \n&1&!f' +
|
||||
randomBytes(24).toString('hex') +
|
||||
'&r\n\n&0&!e WARNING &r &e&lIf you lose the encryption key, most of the data in the database will become unreadable, requiring a new key and a full reset.',
|
||||
));
|
Reference in New Issue
Block a user