-3

I want to protect my class files from decompiling. After searching the internet the most two common names I found are Mocha and Crema. Can anyone guide me to configure them on Windows?

Mureinik
  • 297,002
  • 52
  • 306
  • 350
Abhinab Kanrar
  • 1,532
  • 2
  • 20
  • 46

1 Answers1

0

In short, don't. Obfuscation isn't an absolute protection, it only slows people down, and usually results in a lower quality application.

That being said, if you are intent on using some kind of obfuscation, you'll want to use Proguard. Mocha and Crema are really old and probably won't work. Proguard is the go-to tool for free Java obfuscation, though it's more of an optimizer than an obfuscator. Basically, it removes unused methods and renames everything to shorter names (a, b, etc.) which has the incidental effect of making the code harder to read.

If you want more heavy duty obfuscation, you'll have to turn to commercial tools like Zelix Klassmaster or Allatori or Stringer. Again, note that this isn't an absolute protection. I've decompiled all of those before. It will slow people down a but but it's not worth the cost IMO.

Antimony
  • 37,781
  • 10
  • 100
  • 107