const crypto = require('crypto'); const JWT_SECRET = process.env.JWT_SECRET; const SECURE_SALT = process.env.SECURE_SALT; const ENCRYPTION_KEY = Buffer.from(process.env.ENCRYPTION_KEY || '', 'hex'); if (ENCRYPTION_KEY.length !== 32) { throw new Error('ENCRYPTION_KEY must be a 32-byte (64 hex chars) value'); } const SESSION_SECRET = process.env.SESSION_SECRET || crypto.randomBytes(64).toString('hex'); module.exports = { JWT_SECRET, SECURE_SALT, ENCRYPTION_KEY, SESSION_SECRET };