From 964c9e9088fcd4a489c3025890e205d1452a3e6f Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 10 May 2025 00:43:31 -0600 Subject: Better hash --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.js') diff --git a/index.js b/index.js index 84899f0..600463d 100644 --- a/index.js +++ b/index.js @@ -345,7 +345,7 @@ function renderEvent({type, userId: eventUserId, args}, {userId: currentUserId, } function getUserId(pass) { - return createHash('md5').update(pass).digest('hex').slice(0,7) + return createHash('sha256').update(pass).digest('hex').slice(0,7) } async function readBody(req) { -- cgit 1.4.1