How to prove the security for a class file in war with out effecting the functionality?

We wanted to provide the security for the class file in the war file, beuase if you share the war file to customer he can open and see our code by using some de-compiler available in the market. So i want to restrict that, how can i encrypt that class or any some other way to avoid that lap. And that new war(After enabling the security), it should be executed by the web/application server.

Kindly help me.
prabhuallaAsked:
Who is Participating?
 
Mahesh BhutkarConnect With a Mentor Commented:
You can obfuscate your classes. There are various tools available.

Have a look at IzPack
http://java-source.net/open-source/installer-generators

and obfuscators
http://java-source.net/open-source/obfuscators

yguard is ok
http://www.yworks.com/en/products_yguard_about.htm

klassmaster will give you better protection
http://www.zelix.com/klassmaster/index.html?id=C01
0
 
prabhuallaAuthor Commented:
Thanks for the solution.
0
All Courses

From novice to tech pro — start learning today.