From 8d3a010d74b0044709d679ee6c25450dc932ba56 Mon Sep 17 00:00:00 2001 From: code-by-jassu Date: Mon, 11 Aug 2025 12:51:34 +0530 Subject: [PATCH] added authTagLength during decryption --- src/util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 2c40ce2..d8232b9 100644 --- a/src/util.ts +++ b/src/util.ts @@ -176,7 +176,8 @@ export function decryptProjectConfig( const decipher = crypto.createDecipheriv( 'aes-256-gcm', key, - Buffer.from(ivHex, 'hex') + Buffer.from(ivHex, 'hex'), + { authTagLength: 16 } ); decipher.setAuthTag(Buffer.from(tagHex, 'hex')); const decrypted = Buffer.concat([