Secure Packages  
Author Message
cha0s





PostPosted: 2003-12-3 20:15:00 Top

java-programmer, Secure Packages Is it possible to make packages with non-class files (say, a folder,
or Stuffit archive) that are accessible only to a class file within
the package? Could it be set up so that even a UNIX root user wouldn't
be able to access the files? Would it be necessary to encrypt the
files (and use a Java class to decrypt them) and if so, how? Sorry for
my inexperience here. I'm really kind a beginner at Java programming,
but I need some of these functions for the program I'm writing so...
*shrug* Thanks in advance for any help!
 
Michael Borgwardt





PostPosted: 2003-12-3 20:40:00 Top

java-programmer >> Secure Packages Cha0s wrote:
> Is it possible to make packages with non-class files (say, a folder,
> or Stuffit archive) that are accessible only to a class file within
> the package?

Not really.


> Could it be set up so that even a UNIX root user wouldn't
> be able to access the files?

That is absolutely, fundamentally impossible.


> Would it be necessary to encrypt the
> files (and use a Java class to decrypt them) and if so, how?

What you *can* do is encrypt the data, which does not prevent people from accessing
the file, but gives them only garbage. However, it is *not* possible to give out a program
that decrypts and uses the data without making it possible for anyone who has that
program to analyze it, extract the encryption key and decrypting the data independantly
from your program.