Files
ember-market-frontend/backend/utils/createKeys.js
2025-03-10 17:39:37 +00:00

7 lines
258 B
JavaScript

import crypto from "crypto";
const encryptionKey = crypto.randomBytes(32).toString("hex"); // 32 bytes (256-bit)
const iv = crypto.randomBytes(16).toString("hex"); // 16 bytes (128-bit)
console.log("Encryption Key:", encryptionKey);
console.log("IV:", iv);