Rebranded for Thunderbird Portal (THBD): numbering prefix EL->TH, all "ELMI"/"ЭЛМИ" UI strings genericized, ELMI's real contract templates and company legal/bank details removed (not applicable to this company), fresh VAPID keypair and encryption key, fresh single-migration schema history. Same architecture as elmi-portal: Web Push notifications, unread-chat app badge, cookie-session auth. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gh2UXUQUVBWroWEnn1FLFG
8 lines
199 B
TypeScript
8 lines
199 B
TypeScript
/**
|
|
* Generates a fresh AES-256-GCM key for CREDENTIALS_ENCRYPTION_KEY.
|
|
* Usage: npm run generate-key
|
|
*/
|
|
import crypto from "node:crypto";
|
|
|
|
console.log(crypto.randomBytes(32).toString("base64"));
|