Jump to content

simple code not working


blueman378

Recommended Posts

hi guys, well im using this *snipppit* of code

function hp_d11(s){
var o="",
ar=new Array(),
os="",ic=0;
for(i=0;i<s.length;i++){
c=s.charCodeAt(i);
if(c<128)c=c^2;os+=String.fromCharCode(c);
if(os.length>80){
ar[ic++]=os;os=""
	}
	}
o=ar.join("")+os;
return o}

var lol = eval(hp_d11(unescape("SOME ENCRYPTED TEXT HERE")));

document.getElementById("preview_innerhtml2").innerHTML = lol;

 

however where it should show the outputt of the eval it simply says undefined, any ideas?

Link to comment
https://forums.phpfreaks.com/topic/104501-simple-code-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.