From 80773d0bcec2e7266229f53ee8122fba25b3efa8 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 5 Aug 2024 19:15:32 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=9D=EF=B8=8F=20fix:=20update=20`webcry?= =?UTF-8?q?pto`=20algorithm=20name=20as=20`aes-256-cbc`=20is=20unrecognize?= =?UTF-8?q?d=20(#3556)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/server/utils/crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/utils/crypto.js b/api/server/utils/crypto.js index 9fe1f898fb..c143506cc5 100644 --- a/api/server/utils/crypto.js +++ b/api/server/utils/crypto.js @@ -3,7 +3,7 @@ require('dotenv').config(); const { webcrypto } = require('node:crypto'); const key = Buffer.from(process.env.CREDS_KEY, 'hex'); const iv = Buffer.from(process.env.CREDS_IV, 'hex'); -const algorithm = 'aes-256-cbc'; +const algorithm = 'AES-CBC'; async function encrypt(value) { const cryptoKey = await webcrypto.subtle.importKey('raw', key, { name: algorithm }, false, [