UNPKG

password-hash-salt

Version:

Simple, safe and straight-forward password hashing / salting for node.js

9 lines (8 loc) 291 B
export interface IHashOptions { saltlen?: number; iterations: number; keylen: number; digest: string; } export declare function hash(password: string, options?: IHashOptions): Promise<string>; export declare function verify(password: string, hash: string): Promise<boolean>;