From 3d2b40b3c8334377850d180cb66b1eccbce1c191 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Tue, 7 Oct 2025 01:14:08 -0400 Subject: [PATCH] Upgraded IP-Hashing Algorithm to SHA-512 --- src/utils/hashUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`);