|
Post by Delphiguy on Apr 21, 2006 14:26:47 GMT -5
Is it possible to encrypt the ZIP file in such a way that the content file list won't show up without entering the correct password? I don't care if the method doesn't allow for standard ZIP utilities to handle it, as we will be doing the compress / decompress inside of our application. In fact I would prefer that a standard ZIP utility wouldn't work to ensure security.
Thanks
|
|
|
Post by Kevin on Apr 22, 2006 16:10:28 GMT -5
No, sorry, it is not possible to encrypt the header.
However, one thing you can do that will help with security to some extent...
procedure setZipSignatures(csig, lsig, esig: LongInt);
By calling this procedure when your app starts, it will create zip files with non-standard zip file signatures. This should hide the fact that is is a zip file. The default values for these are:
DEF_CENTSIG = $02014b50; DEF_LOCSIG = $04034b50; DEF_ENDSIG = $06054b50;
Just use some other value for each one. You'll have to call setZipSignatures when your app starts whether you are zipping or unzipping so that vclzip will know you are working with different zip signatures. And you'll always have to set these numbers the same of course to unzip the files that you zipped with them.
Kevin
|
|