docs: function compare(hashstr, password, salt, iterations = 1024, keylen = 32, digest = 'sha256', encoding = 'hex') {
    return hash(password, salt, iterations, keylen, digest, encoding).then((data) => {
      return hashstr === data;
    });
  }