UNPKG

verdaccio-mongodb

Version:
15 lines (14 loc) 453 B
/** * passwordToBcrypt - encrypts clear text password with bcrypt. * @param {string} password * @returns {string} */ export declare function bcryptPassword(password: string): string; /** * verifyPassword - matches password and it's hash. * NOTE: bcrypt.compareSync is intentionally slow! * @param {string} password * @param {string} hash * @returns {boolean} */ export declare function verifyPassword(password: string, hash: string): boolean;