1.2.24 • Published 6 months ago

@types/password-hash v1.2.24

Weekly downloads
2,361
License
MIT
Repository
github
Last release
6 months ago

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

// 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 | undefined;
    saltLength?: number | undefined;
    iterations?: number | undefined;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:27 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by TANAKA Koichi.