check password

This commit is contained in:
fyears
2021-11-08 00:39:17 +08:00
parent cc0c4fe224
commit 7fc38a942a
3 changed files with 85 additions and 7 deletions
+3
View File
@@ -8,6 +8,9 @@ import {
const DEFAULT_ITER = 10000;
// base32.stringify(Buffer.from('Salted__'))
export const MAGIC_ENCRYPTED_PREFIX_BASE32 = "KNQWY5DFMRPV";
const getKeyIVFromPassword = async (
salt: Uint8Array,
password: string,