Separated function

This commit is contained in:
Patrick Alvin Alcala 2025-12-18 19:15:14 +08:00
parent f3b4ceaa1a
commit e72748a611

View file

@ -0,0 +1,9 @@
import { SHA1, SHA384 } from 'crypto-js'
export default async (password: string) => {
const firstHashing = SHA1(password)
const secondHashing = SHA384(firstHashing.toString())
const thirdHashing = SHA1(secondHashing.toString())
return thirdHashing.toString()
}