Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🗝️ fix: update `webcrypto` algorithm name as `aes-256-cbc` is unrecognized (#3556)

Danny Avila80773d0bcec2
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, [