This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: modify gcj for encrypt class-Files


>>>>> "Toni" == kobefan  <kobefan@gmx.net> writes:

Toni> I'm looking for a solution of modifying the GCJ. I want to encrypt java
Toni> source files while compiling so it results in encrypted .class files. The
Toni> Decryption should take place on-the-fly while execute the .class Files.

Toni> Could someone help me? What do I have to do or are there any good
Toni> information sources available???

When generating class files, you could encrypt them in a separate
step.

Reading a .class file at runtime is done in libjava/defineclass.cc.
That is one place you could decrypt.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]