mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
16 lines
562 B
TypeScript
16 lines
562 B
TypeScript
// Type definitions for password-hash 1.2.x
|
|
// Project: https://github.com/davidwood/node-password-hash
|
|
// Definitions by: TANAKA Koichi <https://github.com/mugeso/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
export declare function generate(password: string, options?: Options): string;
|
|
export declare function verify(password: string, hashedPassword: string): boolean;
|
|
export declare function isHashed(password: string): boolean;
|
|
|
|
export interface Options {
|
|
algorithm?: string;
|
|
saltLength?: number;
|
|
iterations?: number;
|
|
}
|