[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.javascript

Use Base64 Encoding To Decode It's Self

0ntariokingston

5/6/2015 2:01:00 AM

http://www.whak.ca/demo/base64-... - If I attempt to "unbase64" (decode from base64) text that is not even encoded to base64, I will end up with a bunch or garble (need a modded encoder/decoder). If I now base64 encode that garble, I almost get back all my data. With some tweaks and persistance, I managded to figure out how to keep the data by URL encoding in one of the steps anything that wasn't a letter or a number.

I even made it into a JavaScript packer. Here is the results from it:

eval(unescape(btoa("jW«·ý¼ÿnÕ?È­ÿm0Ãöy'+??B¢jkzË?Ùç(?ý»ÿoÝ¿öý?").replace(/\57/g,"\45")));

See a bigger example on http://jsfiddle.net...