@types/password-hash
TypeScript icon, indicating that this package has built-in type declarations

1.2.24 • Public • Published

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.

/@types/password-hash/

    Package Sidebar

    Install

    npm i @types/password-hash

    Weekly Downloads

    2,703

    Version

    1.2.24

    License

    MIT

    Unpacked Size

    3.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • types