17 lines
604 B
TypeScript
Raw Normal View History

2025-04-19 15:38:48 +08:00
import { Input } from './utils.js';
export type ArgonOpts = {
t: number;
m: number;
p: number;
version?: number;
key?: Input;
personalization?: Input;
dkLen?: number;
asyncTick?: number;
maxmem?: number;
onProgress?: (progress: number) => void;
};
export declare const argon2d: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array;
export declare const argon2i: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array;
export declare const argon2id: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array;
//# sourceMappingURL=argon2.d.ts.map