mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-09-03 06:24:12 +08:00
9 lines
312 B
JavaScript
9 lines
312 B
JavaScript
// AES-256-CBC requires a 32-byte key. Keep the random bytes as a Buffer;
|
|
// converting them to hex produces a 64-character value and breaks RDP token encryption.
|
|
import crypto from 'node:crypto'
|
|
import dotenv from 'dotenv'
|
|
|
|
global.rpdToken = crypto.randomBytes(32)
|
|
dotenv.config()
|
|
await import('./app/main.js')
|