mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
update to aes-256-cbc algorithm for encryption
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const algorithm = 'aes-256-ctr';
|
const algorithm = 'aes-256-cbc';
|
||||||
const iv = crypto.randomBytes(16);
|
const iv = crypto.randomBytes(16);
|
||||||
const secretKey = crypto.createHash('sha256')
|
const secretKey = crypto.createHash('sha256')
|
||||||
.update(String(process.env.JWT_SECRET))
|
.update(String(process.env.JWT_SECRET))
|
||||||
|
|||||||
Reference in New Issue
Block a user