Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to encrypt java's .class files?

807607Dec 14 2006 — edited Dec 14 2006
Hi everyone,

When I open a class file called PCommon.class through Notepad, there are all following symbols coming out, such as:
Nov� Dec
���D compareTo [Ljava/lang/String;
SourceFile PCommon.java !

!

I thought all Java's class files are encrypted. However, since my PCommon.class has MS SQL connection code in it, I can see the IP address, username and password. Does anyone have any idea how to encrypt .class file or hide those codes I want? Thank you in advance.

Sincerely,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2007
Added on Dec 14 2006
6 comments
985 views