From 78bce02d8561a7b96959e2dad29bd4b1a44bc9ce Mon Sep 17 00:00:00 2001 From: Lavkesh agrawal Date: Thu, 4 Mar 2021 18:51:58 +0530 Subject: [PATCH] Update token-util.js Updated crypto hash to sha256 --- lib/utils/token-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/token-util.js b/lib/utils/token-util.js index 0f73746bb..96d05c0de 100644 --- a/lib/utils/token-util.js +++ b/lib/utils/token-util.js @@ -20,7 +20,7 @@ module.exports = { generateRandomToken: function() { return randomBytes(256).then(function(buffer) { return crypto - .createHash('sha1') + .createHash('sha256') .update(buffer) .digest('hex'); });