DiscordTickets/scripts/keygen.mjs

8 lines
353 B
JavaScript
Raw Normal View History

2022-03-18 18:27:32 +02:00
import { randomBytes } from 'crypto';
import { short } from 'leeks.js';
console.log(short(
'Set the "DB_ENCRYPTION_KEY" environment variable to: \n&1&!f' +
randomBytes(24).toString('hex') +
2022-03-22 01:28:20 +02:00
'&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.'
2022-03-18 18:27:32 +02:00
));