1.0.3 • Published 6 months ago

@types/node-phpass v1.0.3

Weekly downloads
337
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/node-phpass

Summary

This package contains type definitions for node-phpass (https://github.com/glauberportella/password-hash).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-phpass.

index.d.ts

// Type definitions for node-phpass 1.0
// Project: https://github.com/glauberportella/password-hash
// Definitions by: Glenn Reyes <https://github.com/glennreyes>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export const CRYPT_BLOWFISH = 1;
export const CRYPT_EXT_DES = 2;

export class PasswordHash {
    constructor(length?: number, portable?: boolean, phpVersion?: number);
    CheckPassword(password: string, hash: string): boolean;
    HashPassword(password: string, method?: typeof CRYPT_BLOWFISH | typeof CRYPT_EXT_DES): Promise<string>;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 22:41:08 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Glenn Reyes.

1.0.2

7 months ago

1.0.3

6 months ago

1.0.1

3 years ago

1.0.0

4 years ago