You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Improvement] Numbers to expressions improvement #773
Hello!
I have some ideas how to improve numbersToExpressions feature.
One of pros it that code will become uglier and also it will be harder to parse it with regex, as it does javascript-deobfuscator 😏
I think this construction is familiar to you:
const a = ("foo", "bar");
It is not kind of array or similar, it is just chain of literals, so result will be the last - a == "bar".
So, my idea is to replace some number literals to this construction.
So. It's a slightly different thing. The type of number view does not relate with numbersToExpressions option.
It just could be an enhancement of base numbers transformation.
But here is a problem. If I will just randomly transform number to one of the number formats, it can be hard to test it, because right now all tests with numbers depend on the hexadecimal format.
I tried to use “numbersToExpressions” option, but received “not obfuscated” results in some cases:
// 1. OBJECT PROPERTY: number without decimalsconstdata={value: 54}// inputconstdata={'value':0x36};// output
// 2. OBJECT PROPERTY: number with decimals in arrayconstdata={value: [54.8543]}// inputconstdata={'value':[0x2*0x11f2+-0x21a6+0xd*-0x28+0.8543000000000021]}// output
// 3. OBJECT PROPERTY: number with decimalsconstdata={value: 54.8543}// inputconstdata={'value':54.8543}// output
Activity
sanex3339 commentedon Oct 10, 2020
So. It's a slightly different thing. The type of number view does not relate with
numbersToExpressionsoption.It just could be an enhancement of base numbers transformation.
But here is a problem. If I will just randomly transform number to one of the number formats, it can be hard to test it, because right now all tests with numbers depend on the hexadecimal format.
da411d commentedon Oct 10, 2020
It can be moved to another option like
numbersFormats(array) with list of supported formatssanex3339 commentedon Oct 10, 2020
Hmm. Looks good to me.
rmcf commentedon Aug 28, 2023
I tried to use “numbersToExpressions” option, but received “not obfuscated” results in some cases: