code: function(binary) {
        var char, hex, _i, _len;
        hex = "";
        for (_i = 0, _len = binary.length; _i < _len; _i++) {
          char = binary[_i];
          hex += char.charCodeAt(0).toString(16).replace(/^([\dA-F])$/i, "0$1");
        }
        return hex;
      }
docs: Convert a binary string into a hex string.
  @param {String} binary The binary encoded string.
  @return {String} The hex encoded string.