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'); });