update to aes-256-cbc algorithm for encryption

This commit is contained in:
Dave Horton
2021-11-03 16:17:20 -04:00
parent dcf27ba5d3
commit 2a013377cc

View File

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