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))