It is easy to get source code from a class file or jar file
how to avoid this to implement high security
Printable View
It is easy to get source code from a class file or jar file
how to avoid this to implement high security
Question 1: Are you really sure you need this?
Question 2: Are you sure you're sure?
Don't get paranoid?
sure
If someone really wants your code they'll get it.
Short of turning it into an exe (which is itself not protection) there's not a great deal you can do.
If the customer has the jar file they have your code.
really necessary since it would obscure the option.
Obfuscation - Wikipedia, the free encyclopedia
ProGuard
From the ProGuard link:
"harder to reverse-engineer"
Note the "harder".
Since people successfully reverse engineer exe code, obfuscated Java code is not really going to be a challenge.
It can, after all, only go so far due to the needs of the JVM.
Guess he didn't like these answers. Crossposted: HOW TO AVOID JAR,CLASS FILE HACKING
Thanks for the heads-up, Kevin
db
If you don't want people to easily be able to decompile and obtain snippets of your source code you should probably make use of another programming language such as c++ . Compile your program into an executable then pack it, encrypt it, and obfuscate it by utilizing several other third party programs.
And it still won't be unhackable...
I doubt there's any software out there that's worth that effort.