Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent jar decompilation

I have created a plugin project in Eclipse, distributed as a jar. The user can take this jar and decompile it using JAD. Is there any way so that i can stop the decompilation of a jar file? Or, at least, to hide my source code from the user?

like image 474
Eshika Avatar asked Feb 23 '23 05:02

Eshika


1 Answers

The best way to stop your jar from being decompiled is to give users no reason to want to. Obfuscation is just a bandaid. In fact, some people will probably reverse it just for the challenge if it's famous enough.

like image 97
Antimony Avatar answered Mar 05 '23 03:03

Antimony