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? Quote Link to comment 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")); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.