UNPKG

balloon_hash

Version:

A secure WebAssembly-based implementation of Balloon Hashing (RFC 9197)

16 lines 593 B
export declare class BalloonHash { private instance; constructor(spaceCost: number, timeCost: number, parallelCost: number); /** * 주어진 비밀번호와 솔트를 사용하여 해시를 생성합니다. * @param password - 해시할 비밀번호 * @param salt - 솔트 값 * @returns 해시된 결과 (Uint8Array) */ hash(password: string | Uint8Array, salt: string | Uint8Array): Uint8Array; /** * 문자열 또는 Uint8Array를 Uint8Array로 변환합니다. */ private toUint8Array; } //# sourceMappingURL=balloon_hash.d.ts.map