欢迎来到蓝梦软件下载中心!
免责声明:本站软件仅用于恢复和销毁存储介质数据,如果涉及个人隐私等问题,请使用者自行承担,使用软件默认同意本声明!
Q Q:1731278955
传真:0510-82737376
手机:13400027332
E-mail:1731278955@qq.com

技术文章
您所在的位置:首页 > 技术文章 >

ZIP压缩文件数据结构解析四



作者: 来源: 日期:2018/1/7 7:08:30 人气:5 

  J.  Explanation of fields:

      version made by (2 bytes)

          The upper byte indicates the compatibility of the file

          attribute information.  If the external file attributes 

          are compatible with MS-DOS and can be read by PKZIP for 

          DOS version 2.04g then this value will be zero.  If these 

          attributes are not compatible, then this value will 

          identify the host system on which the attributes are 

          compatible.  Software can use this information to determine

          the line record format for text files etc.  The current

          mappings are:

          0 - MS-DOS and OS/2 (FAT / VFAT / FAT32 file systems)

          1 - Amiga                     2 - OpenVMS

          3 - Unix                      4 - VM/CMS

          5 - Atari ST                  6 - OS/2 H.P.F.S.

          7 - Macintosh                 8 - Z-System

          9 - CP/M                     10 - Windows NTFS

         11 - MVS (OS/390 - Z/OS)      12 - VSE

         13 - Acorn Risc               14 - VFAT

         15 - alternate MVS            16 - BeOS

         17 - Tandem                   18 - OS/400

         19 - OS/X (Darwin)            20 thru 255 - unused

          The lower byte indicates the ZIP specification version 

          (the version of this document) supported by the software 

          used to encode the file.  The value/10 indicates the major 

          version number, and the value mod 10 is the minor version 

          number.  

      version needed to extract (2 bytes)

          The minimum supported ZIP specification version needed to 

          extract the file, mapped as above.  This value is based on 

          the specific format features a ZIP program must support to 

          be able to extract the file.  If multiple features are

          applied to a file, the minimum version should be set to the 

          feature having the highest value. New features or feature 

          changes affecting the published format specification will be 

          implemented using higher version numbers than the last 

          published value to avoid conflict.

          Current minimum feature versions are as defined below:

          1.0 - Default value

          1.1 - File is a volume label

          2.0 - File is a folder (directory)

          2.0 - File is compressed using Deflate compression

          2.0 - File is encrypted using traditional PKWARE encryption

          2.1 - File is compressed using Deflate64(tm)

          2.5 - File is compressed using PKWARE DCL Implode 

          2.7 - File is a patch data set 

          4.5 - File uses ZIP64 format extensions

          4.6 - File is compressed using BZIP2 compression*

          5.0 - File is encrypted using DES

          5.0 - File is encrypted using 3DES

          5.0 - File is encrypted using original RC2 encryption

          5.0 - File is encrypted using RC4 encryption

          5.1 - File is encrypted using AES encryption

          5.1 - File is encrypted using corrected RC2 encryption**

          5.2 - File is encrypted using corrected RC2-64 encryption**

          6.1 - File is encrypted using non-OAEP key wrapping***

          6.2 - Central directory encryption