zip folder and set password
hy @ all!
I'm trying with JavaDB (embedded). At startup I need to look if database already exists. For this scenario I thought that, when finishing working with application I zip my database and set password on it and deleting folder with database.
when user starts application he/she has to enter the password and then the zip-file is going to be unzipped.
my problem is in setting password for a zip-file. I haven't found any way in the api. Should I use some encryption instead?
is there a way of compressing data (or only archiving all contents of a folder) that is platform-independent!! --> this I would prefer --> and then encrypt it with synchron key.
what do you think? can you give me some suggestions please.
bye _dp_
[779 byte] By [
_dp_a] at [2007-10-3 8:54:03]

I would definitely recommend using encryption in its place. Or placing the database in a network directory to which only the users have access that need it. Saves you a lot of time and heart-ache. In NT just set access permissions. With UNIX/Linux, just use chmod. No need for all the zipping / unzipping password prompting, etc.
Thanks for your fast reply!
The problem is that it's not common that home-users have a network directory. And the target-community are simple home-users --> so I have to go that way.
As I thought I haven't found any platform-independent way to put one folder with all of its subolders and files into one archive.
I think encryption with DES or any other algorithm is much more secure than setting password to the zip-file (as it is possible on windows xp)
bye
_dp_a at 2007-7-15 4:03:59 >
