Installation
npm install --save @types/password-hash
Summary
This package contains type definitions for password-hash (https://github.com/davidwood/node-password-hash).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/password-hash.
index.d.ts
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 | undefined;
saltLength?: number | undefined;
iterations?: number | undefined;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by TANAKA Koichi.