From a91cdb60d7230c4837648d765464dd63d85f1ab0 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Fri, 12 Dec 2025 20:52:48 +0800 Subject: [PATCH] chore: tweak --- theme/src/node/utils/encrypt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/src/node/utils/encrypt.ts b/theme/src/node/utils/encrypt.ts index fdd15bb9..6ee909e4 100644 --- a/theme/src/node/utils/encrypt.ts +++ b/theme/src/node/utils/encrypt.ts @@ -4,7 +4,7 @@ import { bcrypt } from 'hash-wasm' export async function genEncrypt(password: string): Promise { const salt = new Uint8Array(16) crypto.getRandomValues(salt) - return bcrypt({ + return await bcrypt({ password, salt, costFactor: 11,