diff --git a/src/utils/hashUtils.js b/src/utils/hashUtils.js index 52616c6..082cd73 100644 --- a/src/utils/hashUtils.js +++ b/src/utils/hashUtils.js @@ -52,7 +52,7 @@ module.exports.comparePassword = function(pass, hash){ */ module.exports.hashIP = function(ip){ //Create hash object - const hashObj = crypto.createHash('md5'); + const hashObj = crypto.createHash('sha512'); //add IP and salt to the hash hashObj.update(`${ip}${config.ipSecret}`);