docs: function hashObject(obj, opts) {
      opts = opts || {};
      var alg = opts.alg || defaults.alg;
      var enc = opts.enc || defaults.enc;
      var sorted = sortObject(obj);
  
      return crypto
        .createHash(alg)
        .update(sorted)
        .digest(enc);
    }