From 0e243efc820c10390bf01f15ddf0e80f57f8630f Mon Sep 17 00:00:00 2001 From: ION606 Date: Sun, 2 Jun 2024 17:30:46 -0400 Subject: [PATCH] removed some chars --- enc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enc.js b/enc.js index 40a39f9..65aca62 100644 --- a/enc.js +++ b/enc.js @@ -9,9 +9,9 @@ function generateKey(password, salt) { // Function to encrypt a message export function encryptInitEnc(buffer, password) { - const salt = randomBytes(16); // Generate a new salt + const salt = randomBytes(16); const key = generateKey(password, salt); - const iv = randomBytes(16); // Initialization vector + const iv = randomBytes(16); const cipher = createCipheriv('aes-256-cbc', key, iv); let encrypted = Buffer.concat([cipher.update(buffer), cipher.final()]); return {