npm.io
1.2.24 • Published 2 years ago

@types/password-hash

Licence
MIT
Version
1.2.24
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by TANAKA Koichi.