lib/modules/auth/index.js
function makePasswordHash(password, cb) {
	try {
		const hash = hashes.create(exports.getHashConfiguration());
		hash.fill(password, function (error) {
			cb(error, hash);
		});
	} catch (error) {
		return cb(error);
	}
}
function makePasswordHash(password, cb) {
	try {
		const hash = hashes.create(exports.getHashConfiguration());
		hash.fill(password, function (error) {
			cb(error, hash);
		});
	} catch (error) {
		return cb(error);
	}
}
function makePasswordHash ( password , cb ) { try { const hash = hashes . create ( exports . getHashConfiguration ( ) ) ; hash . fill ( password , function ( error ) { cb ( error , hash ) ; } ) ; } catch ( error ) { return cb ( error ) ; } }
Generates a hashed password.
@param {string} password Password to hash
@param {Function} cb Receives (error, hashedPassword)
Generates a hashed password .