Nodejs Hex Decode hexDecode8()

Here you can find the source of hexDecode8()

Method Source Code

String.prototype.hexDecode8 = function(){
    var j;/*from   w w  w.  j  a v a  2  s  .co  m*/
    var hexes = this.match(/.{1,2}/g) || [];
    var back = "";
    for(j = 0; j<hexes.length; j++) {
        back += String.fromCharCode(parseInt(hexes[j], 16));
    }
    return back;
}

Related

  1. hexDecode()
    String.prototype.hexDecode = function() {
      var j;
      var hexes = this.match(/.{1,4}/g) || [];
      var back = "";
      for (j = 0; j < hexes.length; j++) {
        back += String.fromCharCode(parseInt(hexes[j], 16));
      return back;
    };
    ...