This commit is contained in:
fyears
2021-11-05 01:29:44 +08:00
parent 7c4a981434
commit 774e31ef27
4 changed files with 4 additions and 16 deletions
-6
View File
@@ -1,12 +1,6 @@
import * as base32 from "hi-base32";
import { bufferToArrayBuffer, arrayBufferToBuffer } from "./misc";
if (window === undefined) {
global.window = {
crypto: require("crypto").webcrypto,
} as any;
}
const DEFAULT_ITER = 10000;
const getKeyIVFromPassword = async (