Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* For a finite normal 64-bit float `f`, extracts integers `sgn`, | |
* `exponent`, and `mantissa` such that: | |
* | |
* - `sgn` is -1 or +1 | |
* - `exponent` is between -1023 and 1024, inclusive | |
* - `mantissa` is between 0 and 2^51 - 1, inclusive | |
* - the number given by `f` equals `sgn * 2^exponent * (1 + mantissa / 2^52)` | |
* | |
* The results are all bigints within the range of safe integers for |
OlderNewer