DiscordTickets/scripts/keygen.js

9 lines
393 B
JavaScript
Raw Normal View History

2023-02-13 17:07:05 +02:00
/* eslint-disable no-console */
2022-05-05 23:29:28 +03:00
const { randomBytes } = require('crypto');
const { short } = require('leeks.js');
2022-03-18 18:27:32 +02:00
console.log(short(
2023-02-13 15:14:51 +02:00
'Set the "ENCRYPTION_KEY" environment variable to: \n&!b ' +
2022-03-18 18:27:32 +02:00
randomBytes(24).toString('hex') +
2023-02-13 15:14:51 +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
));