Separated function
This commit is contained in:
parent
f3b4ceaa1a
commit
e72748a611
1 changed files with 9 additions and 0 deletions
9
src/utils/functions/securePassword.ts
Normal file
9
src/utils/functions/securePassword.ts
Normal 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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue