Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-20-2004, 07:39 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,503
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 04-20-2004, 11:46 PM   #2 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
sure: don't give the source or compiled version to ANYBODY. in fact, delete it, wipe the hard drive, and then melt it.
joe_bruin is offline   Reply With Quote
Old 04-22-2004, 02:36 AM   #3 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
".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.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 04-22-2004, 09:08 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,503
sde is on a distinguished road
thanks Be, .. i'll pass the info along! i really appreciate it!
__________________
Mike
sde is offline   Reply With Quote
Old 04-22-2004, 06:07 PM   #5 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
technobard is on a distinguished road
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.
technobard is offline   Reply With Quote
Old 04-23-2004, 09:02 AM   #6 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
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.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 04-23-2004, 04:11 PM   #7 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
technobard is on a distinguished road
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.
technobard is offline   Reply With Quote
Old 04-26-2004, 01:42 AM   #8 (permalink)
Hrqls
Regular Contributor
 
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
Hrqls is on a distinguished road
does anyone know of any nice free tools to decompile a java class ?
__________________
The specialty of the house? thats me (cheap as always)
Hrqls is offline   Reply With Quote
Old 04-26-2004, 04:04 AM   #9 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
http://www.sureshotsoftware.com/jcavaj/index.html
http://www.kpdus.com/jad.html
http://members.fortunecity.com/neshkov/dj.html

That's just from googling though . . .
__________________
GitS
Belisarius is offline   Reply With Quote
Old 04-27-2004, 09:39 PM   #10 (permalink)
Hrqls
Regular Contributor
 
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
Hrqls is on a distinguished road
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)
Hrqls is offline   Reply With Quote
Old 04-27-2004, 09:45 PM   #11 (permalink)
Rotkiv
Code Monkey
 
Rotkiv's Avatar
 
Join Date: Apr 2004
Location: Silicon Valley, CA
Posts: 59
Rotkiv is on a distinguished road
Send a message via AIM to Rotkiv Send a message via MSN to Rotkiv
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.
Rotkiv is offline   Reply With Quote
Old 04-27-2004, 09:46 PM   #12 (permalink)
Hrqls
Regular Contributor
 
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
Hrqls is on a distinguished road
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)
Hrqls is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sun Plans to Open Nearly All of Solaris Source Code redhead Code Newbie News 1 06-30-2004 04:13 AM
Microsoft Opens Source Code redhead Code Newbie News 1 06-29-2004 09:44 AM
Fix security at source with latest inspection software redhead Code Newbie News 0 04-05-2004 04:23 AM
i.e. & view source sde Lounge 4 08-19-2003 05:35 AM
Open Source by Osmosis revolution Code Newbie News 0 08-10-2003 05:36 PM


All times are GMT -8. The time now is 06:11 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting