I have a web application written in the Struts2 framework. I want to host the application with another company. Is there any way to hide the code which is hosted on the server? What I want is to hide the code from anyone who has access to the server. Using the application would be allowed, but viewing the code prohibited.
|
migrated from stackoverflow.com Nov 12 '11 at 16:05
|
By hiding code i assume that you want to restrict others from seeing your business logic which includes you struts2 Action classes any other configurations and Business logic or other potential algorithms business routines you have written in your application. When we deploy our application on a web-server we generally give only class files along with any JSP,CSS java-script etc. though there is no certain or 100% way to d-compile java classes but there are potential so many d-compiler out there which can help to d-compile the code. So if some one want to really see your code he can get an idea about it. regarding securing JSP/HTML/CSS etc |
|||||||||||
|
|
If you want to protect you HTML and javascript code then there are tools like Googles Closure compiler that optomise the javascript and in the process render it difficult to reverse engineer. If your code is written in java then there are open source tools like Proguard. It is likely there are similar tools for other languages. Retrofitting obfuscation can be a be a bit tricky, especially where interfaces are concerned but does provide a degree pf protection. |
|||
|
