@zaeniahmad/kpwgen
Version:
Deterministic password generation core logic
15 lines (14 loc) • 459 B
TypeScript
export declare function toBase32(a: Uint8Array): string;
export type GenOptions = {
masterSecret: string;
platform: string;
account: string;
version?: number;
prefix?: string;
suffix?: string;
lengthTarget?: number;
normalize?: boolean;
};
export type HmacFunction = (a: string, b: string) => Uint8Array;
export declare function normalizePlatform(a: string): string;
export declare function genPassword(g: GenOptions): string;