Re: encrypted source file support in jdk?
Gordon Beaton wrote:
On Fri, 28 Sep 2007 11:41:05 +0200, tom forsmo wrote:
To explain again, what I am looking for is a way to protect the
SOURCE CODE and CLASS FILES during DEVELOPMENT, that means only when
the code is in-house.
The *employees* are the biggest security risk any company has. Will
yours get to see the code while they're working on it?
That is true, to solve that I am thinking something on the lines of:
- only supported tools are allowed. I.e. tools that can encrypt/decrypt
code.
- all tools can only operate with encryption enabled.
- the tools must prohibit copy/paste outside the tool.
- if anything is to be exported to different formats the format must
support encryption.
With all the new memorystick similar devices entering widespread use,
and employees indiscriminately copying it to them, documents and source
code is floating all over the place unprotected. that is why encrypting
the files themselves are the only solution.
But I think I have found a viable solution to encrypting java
source/class files in jdk6, which is to use the javax.compiler tool for
source code and a cloassloader for the class files. For jdk7 its open
source so I suppose I can just patch the compiler/jvm to give it native
support instead, which makes it faster and more secure.
So, thanks for all suggestions so far.
regards
tom