I’m adding a unit converter to my website from this link: http://www.unitconversion.org/faq.html
And as I was looking at the code I ran across code that looked like this in the JS file:
\x00@4\f*0(_\b!\x00Y\x00Q1%\nB;\bTY)\x0b TDD m2&Nw\t&P(cHH;dlA,M\b,L<-A\bQ\b\n+|kL2\x00HGW
\ra-+\fA@7d%1H5\"\x00,@~fi\x00t 2Bc&8GeWE\x00j1\
It’s javascript as its in the JS file but I’ve never seen syntax like that
From what I can tell, part of the code starts and ends when there \ is shown.
Can anyone shed some light?
The code here includes the encoded code, a decoding algorithm and an
evalexpression.If you instead of
evalsimply log the decoded version of the code, you’ll see it’s just plain JavaScript.Then if you make jsbeautifier indent things, it will become a little more readable. Still though, they’ve used inscrutable variable names, but nevertheless you can view the result here.