From 22db2287d2d4d57160222986f65016fbe5ffa304 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Tue, 18 Oct 2022 16:07:28 +0700 Subject: [PATCH] improve hashing!1!1! --- plugins/hash.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/hash.js b/plugins/hash.js index 78141d7..7b791e7 100644 --- a/plugins/hash.js +++ b/plugins/hash.js @@ -3,11 +3,11 @@ const crypto = require('crypto'); module.exports = { inject: function(bot) { const hashInterval = setInterval(() => { - bot.hash = crypto.createHash('md5').update(Math.floor(Date.now() / 1000).toString() + 'chomens1!1!').digest('hex').toString().substring(0, 16); - }, 1000); + bot.hash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + 'chomens1!1!').digest('hex').substring(0, 16); + }, 5000); const ownerHashInterval = setInterval(() => { - bot.ownerHash = crypto.createHash('md5').update(Math.floor(Date.now() / 1000).toString() + 'ownermogus').digest('hex').toString().substring(0, 16); - }, 1000); + bot.ownerHash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + 'ownermogus').digest('hex').substring(0, 16); + }, 5000); bot.on('end', () => { clearInterval(hashInterval); clearInterval(ownerHashInterval);