From f3b4ceaa1a0506708ed1fd1d10e46afa2c09aaa1 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Thu, 18 Dec 2025 17:16:45 +0800 Subject: [PATCH] Updated register page --- src/pages/RegisterPage/Register.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/RegisterPage/Register.tsx b/src/pages/RegisterPage/Register.tsx index b272247..5aff5ae 100644 --- a/src/pages/RegisterPage/Register.tsx +++ b/src/pages/RegisterPage/Register.tsx @@ -1,6 +1,6 @@ import { FileField } from '@kobalte/core/file-field' import { useNavigate } from '@solidjs/router' -import { SHA1, SHA3 } from 'crypto-js' +import { MD5, SHA1, SHA384 } from 'crypto-js' import dayjs from 'dayjs' import { IoChevronBack } from 'solid-icons/io' import { createEffect, createSignal } from 'solid-js' @@ -42,8 +42,9 @@ export default () => { globalId = 276 setName(APPROVERNAME) } - const hash = SHA3(globalId.toString()) - setSignature(`Use OCBO e-Sign Validator - scanid=${hash.toString()}`) + const hash = SHA384(globalId.toString()) + const secondHash = MD5(hash.toString().substring(9)) + setSignature(`Use OCBO e-Sign Validator - scanid=${secondHash.toString().substring(24)}`) try { register() @@ -77,8 +78,8 @@ export default () => { const securePassword = async () => { const firstHashing = SHA1(password()) - const secondHashing = SHA3(firstHashing) - const thirdHashing = SHA1(secondHashing) + const secondHashing = SHA384(firstHashing.toString()) + const thirdHashing = SHA1(secondHashing.toString()) globalHashPassword = thirdHashing.toString() }