Solved

Java .class Files and Security

Posted on 2009-05-07
4
175 Views
Last Modified: 2013-12-29
Hello,

I was curious how secure Java .class files are created using current versions of Java.

1. Can a Java .class file be uncompiled to be able to see the source code?

2. Is there a way to prevent this and\or encrypt it?


Thanks,

Michael
0
Comment
Question by:michael4606
  • 2
4 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 150 total points
ID: 24326420
>>1. Can a Java .class file be uncompiled to be able to see the source code?

Yes, using a decompiler

>> 2. Not ultimately. All you can do is make it more difficult by using an obfuscator.


If you keep classes server-side, they should be safe though.
0
 
LVL 12

Expert Comment

by:basav_com
ID: 24326434
You can use java decompilers to see the source code of the .class files.
http://www.javaworld.com/javaworld/jw-07-1997/jw-07-decompilers.html
0
 
LVL 12

Accepted Solution

by:
basav_com earned 250 total points
ID: 24326453
You can use 'Code Obfuscation' to prevent reverse engineering :)
http://www.cs.arizona.edu/~collberg/Research/Students/DouglasLow/obfuscation.html
0
 
LVL 92

Assisted Solution

by:objects
objects earned 100 total points
ID: 24332221
1. usually, though the quality of the source depends on what ofuscation was applied

Have a look here http://www.zelix.com/klassmaster/index.html


This is a good read on the subject

http://www.excelsior-usa.com/articles/java-obfuscators.html
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now