From 2a013377cc227a222cb7c250b6750c9eaa358954 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 3 Nov 2021 16:17:20 -0400 Subject: [PATCH] update to aes-256-cbc algorithm for encryption --- lib/utils/encrypt-decrypt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/encrypt-decrypt.js b/lib/utils/encrypt-decrypt.js index cb944189..46bd406c 100644 --- a/lib/utils/encrypt-decrypt.js +++ b/lib/utils/encrypt-decrypt.js @@ -1,5 +1,5 @@ const crypto = require('crypto'); -const algorithm = 'aes-256-ctr'; +const algorithm = 'aes-256-cbc'; const iv = crypto.randomBytes(16); const secretKey = crypto.createHash('sha256') .update(String(process.env.JWT_SECRET))