Hi,
I have been recently investigating the fact that it appears to be quite easy to decompile .class files to attain source code. This scares me! So I have done a bit more research to find out some solutions to stop this.
1.) Encrypt the byte code and use a different class loader.
This is flawed and will not work. This article is great: http://www.javaworld.com/javaworld/javaqa/2003-05/01-qa-0509-jcrypt.html
2.) Use an obfuscation tool.
Just makes it harder…
3.) I have heard of a way to ‘lock’ the jar so that tools like winrar cannot open it. I do not know anything about that.
Those are the ones that I currently know of to protect the source code. It doesn’t seem to hopeful to be honest. I find it very saddening that this is a possibility with java.
Does anyone else have any ways that they protect themselves against potential source code thefts?
I am going to post up some more information as I stumble across this. I feel this is an important aspect to java.
Thanks!
James