This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have a web application and WEB-INF lib has some jars ....i dont wany any one using my web application to obfuscate my code ..hence i want a way to encrypt my classes and if so whats the way of decrypting them because while loading the classes tomcat may not be able to load those encrypted classes properly
i will encrypt using his tool ...but do i need to something from my server side ?? i mean will jvm understand this and will be able to load the class
And also is there any free tool for this because this is licensed for commercial use
Joined: Mar 05, 2002
You can use yGuard. This is free.
You do not need anything on your server side. The only thing that you have to do is run your classes through the obfuscator.
You have to make sure that all public methods are not obfuscated. An obfuscator actually discards all the variable, method and classnames. So if you have some methods and classes that you refer to externally you have to say to the obfuscator that is must leave these things alone.
In most obfuscator you will have to write a text file with the names of the classes and methods that may not be obfuscated. You will have to read the obfuscator's manuals for this.