+ 1

Hexadecimal in JavaScript , How ?!

I see many pro coders using hexadecimal values purely in their <script> tags . it's pure hexadecimal values 😭😭. I don't get it . I want to know how this works . The below codes have an example how https://code.sololearn.com/WA11LWquI0nF/?ref=app

30th Aug 2020, 10:15 AM
Shreyansh Shah
Shreyansh Shah - avatar
4 Antworten
+ 2
its pretty simple obfuscation. but i'm not sure about the tool here's how, take your code as a string, loop trough them. get the char code, convert the charcode to hex then add necessary prefix like % or \ because how simple it is, i bet there's another layer of obfuscation under it
30th Aug 2020, 10:51 AM
Rei
Rei - avatar
+ 2
Actually that's not very comples and hard concept.she is just decode a hexadecimal string via unscape function and it returns a new string then she execute the retuened string via eval. if you see code carefully you will see unscape and eval funcrion as i said https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape
30th Aug 2020, 11:03 AM
Sadness
Sadness - avatar
0
Put easy "0x" before your number. console.log(0x12345678);
30th Aug 2020, 11:05 AM
Sebastian Ahlborn
Sebastian Ahlborn - avatar
0
You can code and decode html file to hexadecimal or hexadecimal to html using this http://www.spidytechnology.com/html_encoder_and_decoder.html
30th Aug 2020, 11:23 AM
Divya Mohan
Divya Mohan - avatar