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);