Here you can find the source of hexDecode8()
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; }
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; }; ...