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
Solved

Java .class Files and Security

Posted on 2009-05-07
4
179 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netstat -ano | find "8000" and taskkill /f /pid 2984 3 83
how to add new optional parameter to JSP 1 49
tomcat administrtor 12 61
java mysql insert application 14 28
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

856 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