Upgraded IP-Hashing Algorithm to SHA-512

This commit is contained in:
rainbow napkin 2025-10-07 01:14:08 -04:00
parent 64348b8486
commit 3d2b40b3c8

View file

@ -52,7 +52,7 @@ module.exports.comparePassword = function(pass, hash){
*/ */
module.exports.hashIP = function(ip){ module.exports.hashIP = function(ip){
//Create hash object //Create hash object
const hashObj = crypto.createHash('md5'); const hashObj = crypto.createHash('sha512');
//add IP and salt to the hash //add IP and salt to the hash
hashObj.update(`${ip}${config.ipSecret}`); hashObj.update(`${ip}${config.ipSecret}`);