other
This commit is contained in:
7
backend/utils/createKeys.js
Normal file
7
backend/utils/createKeys.js
Normal file
@@ -0,0 +1,7 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user