code: function hash(str, algo, encoding) {
    return crypto
      .createHash(algo || 'sha1')
      .update(str)
      .digest(encoding || 'hex');
  }
docs: Return cryptographic hash (defaulting to: "sha1") of a string.
  
  @param {String} str
  @param {String} algo - Algorithm used for hashing, defaults to sha1
  @param {String} encoding - defaults to hex
  @return {String}