blueman378 Posted May 7, 2008 Share Posted May 7, 2008 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 More sharing options...
rhodesa Posted May 7, 2008 Share Posted May 7, 2008 I don't see the reason for eval... var lol = hp_d11(unescape("SOME ENCRYPTED TEXT HERE")); Link to comment https://forums.phpfreaks.com/topic/104501-simple-code-not-working/#findComment-535240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.