code: function toHex(bytes) {
      return Array.prototype.map.call(bytes, function (n) {
          return (n < 16 ? '0' : '') + n.toString(16);
      }).join('');
  }
docs: Converts a Uint8Array to a hexadecimal string For example, toHex([255, 0, 255]) returns "ff00ff"