'back engineering' java applets  
Author Message
Jeremy Watts





PostPosted: 2005-6-13 16:42:00 Top

java-programmer, 'back engineering' java applets hi,

is it possible to gain access to java code by a user using an applet over
the web? i know with some scripting languages like PHP or javascript then
users can view the code and 'back engineer' it to discover how it works etc.

is this possible with java?

thanks


 
Thomas Weidenfeller





PostPosted: 2005-6-13 17:33:00 Top

java-programmer >> 'back engineering' java applets Jeremy Watts wrote:
> is it possible to gain access to java code by a user using an applet over
> the web?

Yes. The user loads the bytecode over the network and can decompile it.
You can make reverse engineering more difficult, but not impossible, by
using an obfuscater (google for detail). Decryption classloaders also
don't make reverse engineering impossible (the classloader itself can be
reverse engineered and then used to decrypt the "secret" code which it
should actually protect).

If you don't want your code out there on the net don't put it there.
Provide a web application and keep all your code on the server, e.g. in
some servlet and just send HTML pages to the user.

/Thomas

PS: Most code isn't worth reverse engineering. Are you sure that your
applet is so special that it needs the protection?


--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq