code: function hash(password, algo, options) {
    algo = getAlgorithmByName(algo || DEFAULT_ALGO);
  
    return algo.hash(
      password,
      Object.assign(Object.create(null), globalOptions[algo.name], options)
    );
  }
docs: =================================================================== 
  Hashes a password.
  
  @param {string} password The password to hash.
  @param {integer} algo Identifier of the algorithm to use.
  @param {object} options Options for the algorithm.
  @param {function} callback Optional callback.
  
  @return {object} A promise which will receive the hashed password.