diff options
author | Ashelyn Rose <git@ashen.earth> | 2025-05-10 00:43:31 -0600 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2025-05-10 00:43:31 -0600 |
commit | 964c9e9088fcd4a489c3025890e205d1452a3e6f (patch) | |
tree | 2543ed8e9f421d4c427108e7ac37851242e63542 /index.js | |
parent | 0f1be782d83700aef53d8953b08fe2a6c5d807e1 (diff) |
Better hash
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |