This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

encrypt codes

 
lynn fann
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This there any way to encrypt the jsp coding and java class? so that the users cant take and re-use.
for the java class, it must not allow decompiler to decompile the file.
thanks.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no. If the computer can execute it, it can bring it back to some human readable form.
That's not just true for JSPs and Java classes, but for everything.

You could have gotten your answer a lot quicker by using some search engines, as here alone it's answered on average at least once a month (and periodically once a week or more often).
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes , this might be possible to encrypt your .class files , but the classloader that would be loading those files should again decrypt the codes.I do not feel that is very useful as you can always decompile the classloaders code to find as how the decrytion of the classes being done.

you can try using any Obfuscator.

Obfuscator
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code of JSP pages is never available to the user, as it resides on the server only (where it is presumably safe). Or are you talking about a scenario where the customer is provided with a complete deployable web app?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic