skidfuscator-java-obfuscator icon indicating copy to clipboard operation
skidfuscator-java-obfuscator copied to clipboard

NumberEncryption not working

Open gamerover98 opened this issue 2 years ago • 1 comments

Hi, I'm trying to hide inline values but it doesn't work. This is an example:

double a = something.getValue();

if (a > 50) {
    // do something...
}

Obfuscated bytecode:

 while (true) {
  Label_0166: {
      if (dcmpl(n2, 50.0) > (0x28CF030F ^ nkxhdejreeseiinm)) {
      Label_1188:
          while (true) {
            ...

As you can see, the "50.0" is exposed and can be modified with a bytecode editor. I'm also trying to enable or disable the numberEncryption property, but nothing changes.

numberEncryption: {
    enabled: true
    exempt: []
}

Thanks!

gamerover98 avatar Jul 19 '23 13:07 gamerover98

Number encryption does not support doubles it seems. will introduce that in the future

terminalsin avatar Jul 19 '23 14:07 terminalsin