|
 |
|
 |
04-20-2004, 07:39 AM
|
#1 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,503
|
protecting source?
i have a friend who is working on a java project and asked me if there was anyway to protect the source of the applicaition from being viewed or decompiled?
are there any tools like this for java?
__________________
Mike
|
|
|
04-20-2004, 11:46 PM
|
#2 (permalink)
|
|
LOAD "*",8,1
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
|
sure: don't give the source or compiled version to ANYBODY. in fact, delete it, wipe the hard drive, and then melt it.
|
|
|
04-22-2004, 02:36 AM
|
#3 (permalink)
|
|
Java fanboy
Join Date: Aug 2003
Posts: 1,166
|
".class" files can be easily decompiled, and there's no way around that.
There are programs that turn Java into machine-executable code (same as C code). This breaks portability, and of course the compilers will usually lag behind the JVM in Java compatability, but they exist. See gcj.
|
|
|
04-22-2004, 09:08 AM
|
#4 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,503
|
thanks Be, .. i'll pass the info along! i really appreciate it!
__________________
Mike
|
|
|
04-22-2004, 06:07 PM
|
#5 (permalink)
|
|
Centurion Nova Prime
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
|
Well, nothing is foolproof, but there are java obfuscators that make it very difficult to decompile to source. Do a google on "java obfuscator" and you'll get a number of hits.
|
|
|
04-23-2004, 09:02 AM
|
#6 (permalink)
|
|
Java fanboy
Join Date: Aug 2003
Posts: 1,166
|
If I recall correctly, obfuscators don't affect decompilation so much as readability. You can decompile the class files just as easily as non-obfuscated class files, it's just that what you end up with is very hard to work with.
|
|
|
04-23-2004, 04:11 PM
|
#7 (permalink)
|
|
Centurion Nova Prime
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
|
Yeah, I think you're right. At least one that I'm aware of creates a numeric substitution list and displays numbers for major portions of the source code when you decompile. So the source you get isn't true source although with the same obfuscator you can replace the substitutions with the original values to get true source again. It's something that will probably stop all but the most determined individual.
|
|
|
04-26-2004, 01:42 AM
|
#8 (permalink)
|
|
Regular Contributor
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
|
does anyone know of any nice free tools to decompile a java class ?
__________________
The specialty of the house? thats me (cheap as always)
|
|
|
04-26-2004, 04:04 AM
|
#9 (permalink)
|
|
Java fanboy
Join Date: Aug 2003
Posts: 1,166
|
|
|
|
04-27-2004, 09:39 PM
|
#10 (permalink)
|
|
Regular Contributor
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
|
thanks .. guess i will try some
i found a whole list of them .. was wondering if there some who were much better than the rest 
__________________
The specialty of the house? thats me (cheap as always)
|
|
|
04-27-2004, 09:45 PM
|
#11 (permalink)
|
|
Code Monkey
Join Date: Apr 2004
Location: Silicon Valley, CA
Posts: 59
|
just for the record, DJjava worked very well for me, and it makes it way too easy to get the source code for a java .class.
|
|
|
04-27-2004, 09:46 PM
|
#12 (permalink)
|
|
Regular Contributor
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
|
ah thanks .. that will be the first me to try
will also experiment with a few obfusticators (sp?) and have a look at their results 
__________________
The specialty of the house? thats me (cheap as always)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 06:11 AM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|