This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: modify gcj for encrypt class-Files
- From: Tom Tromey <tromey at redhat dot com>
- To: kobefan at gmx dot net
- Cc: java-patches at gcc dot gnu dot org
- Date: 08 Mar 2006 10:45:27 -0700
- Subject: Re: modify gcj for encrypt class-Files
- References: <31486.1141832295@www001.gmx.net>
- Reply-to: tromey at redhat dot com
>>>>> "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