From 1300209ee62c4cff44a7d52c338b7ea58d83d697 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 13 Apr 2025 22:16:06 +0000 Subject: [PATCH] Update app-shell/src/encryption-utils.js --- app-shell/src/encryption-utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app-shell/src/encryption-utils.js b/app-shell/src/encryption-utils.js index 632da14..b7be756 100644 --- a/app-shell/src/encryption-utils.js +++ b/app-shell/src/encryption-utils.js @@ -18,6 +18,10 @@ async function encryptData(data, encryptionKeyBase64 = schema_encryption_key) { } const key = base64.decode(encryptionKeyBase64); + +console.log(`[DEBUG] Decoded key length (bytes): ${key ? key.length : 0}`); // Добавили эту строку + + const iv = crypto.randomBytes(12); const cipher = crypto.createCipheriv(algorithm, key, iv);