/** * * password hash and check * * 7'2014-2024 Bluefox * 2014 hobbyquaker * * derived from https://github.com/florianheinemann/password-hash-and-salt/ (MIT License) * * The created hash is of the following format: $$$ * * Usage Example: var password = require('./lib/password.js'); password('test').hash(null, null, function (err, res) { console.log(res); password('test').check(res, function (err, res) { console.log('test: ' + res); }); password('muh').check(res, function (err, res) { console.log('muh: ' + res); }); }); * */ export interface PasswordReturnValue { complexity: (password: string, callback: (isComplex: boolean) => void) => boolean; check: (hashedPassword: string, callback: (err?: Error | null, isOk?: boolean) => void) => void; hash: (salt: string | null, iterations: number | null, callback: (err?: Error | null, hash?: string) => void) => void; } export declare function password(pw: string): PasswordReturnValue; //# sourceMappingURL=password.d.ts.map