Solved

Java .class Files and Security

Posted on 2009-05-07
4
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

688 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