mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
chore: tweak
This commit is contained in:
parent
15e62010c2
commit
a91cdb60d7
@ -4,7 +4,7 @@ import { bcrypt } from 'hash-wasm'
|
||||
export async function genEncrypt(password: string): Promise<string> {
|
||||
const salt = new Uint8Array(16)
|
||||
crypto.getRandomValues(salt)
|
||||
return bcrypt({
|
||||
return await bcrypt({
|
||||
password,
|
||||
salt,
|
||||
costFactor: 11,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user