Hi Przemek,

1) I did a quick test, but unzip doesn't seem to accept
   any passwords for something zipped with myzip.
   Also, I've zipped something with a password using zip,
   and tried to unzip it with myunzip, but it didn't
   work either. Maybe I'm doing something wrong.

2) I'm not sure I understand hb_zipfilecreate()'s new
   parameter. What file's CRC32 should be passed there?

Brgds,
Viktor

On 2008.07.31., at 14:08, Przemyslaw Czerpak wrote:

2008-07-31 14:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
 * harbour/contrib/hbmzip/zip.c
   ! set valid ZIP signature in header file (2.0)

 * harbour/contrib/hbmzip/hbmzip.c
   ! fixed ZIP encryption header by adding CRC32 checksum
     Now other tools should properly recognize password encrypted
     archives created by HBMZIP library. Please test.
   ! changed parameters of HB_ZipFileCreate() function to pass CRC32
     for password encrypted files:
        HB_ZipFileCreate( hZip, cZipName, dDate, cTime,
                          nInternalAttr, nExternalAttr,
                          [ nMethod = HB_ZLIB_METHOD_DEFLATE ],
                          [ nLevel = HB_ZLIB_COMPRESSION_DEFAULT ],
[ cPassword, ulFileCRC32 ], [ cComment ] ) ->
                    nError
   + added new function to calculate CRC32 value from file body:
        HB_zipFileCRC32( cFileName ) -> nError
   + added translation for file attributes when DOS archive is
     decompressed in *nix environment

 * harbour/contrib/hbmzip/readme.txt
   * updated list of Harbour [UN]ZIP functions and parameters

best regards
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to