Skip to content

Commit

Permalink
🗝️ fix: update webcrypto algorithm name as aes-256-cbc is unrecog…
Browse files Browse the repository at this point in the history
…nized (#3556)
  • Loading branch information
danny-avila authored Aug 5, 2024
1 parent 458dc9c commit 80773d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/utils/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down

0 comments on commit 80773d0

Please sign in to comment.