File: APPNOTE.TXT - .ZIP File Format Specification
Version: 6.3.2
Revised: September 28, 2007
Copyright (c) 1989 - 2007 PKWARE Inc., All Rights Reserved.
The use of certain technological aspects disclosed in the current
APPNOTE is available pursuant to the below section entitled
"Incorporating PKWARE Proprietary Technology into Your Product".
I. Purpose
----------
This specification is intended to define a cross-platform,
interoperable file storage and transfer format. Since its
first publication in 1989, PKWARE has remained committed to
ensuring the interoperability of the .ZIP file format through
publication and maintenance of this specification. We trust that
all .ZIP compatible vendors and application developers that have
adopted and benefited from this format will share and support
this commitment to interoperability.
II. Contacting PKWARE
---------------------
PKWARE, Inc.
648 N. Plankinton Avenue, Suite 220
Milwaukee, WI 53203
+1-414-289-9788
+1-414-289-9789 FAX
zipformat@pkware.com
III. Disclaimer
---------------
Although PKWARE will attempt to supply current and accurate
information relating to its file formats, algorithms, and the
subject programs, the possibility of error or omission cannot
be eliminated. PKWARE therefore expressly disclaims any warranty
that the information contained in the associated materials relating
to the subject programs and/or the format of the files created or
accessed by the subject programs and/or the algorithms used by
the subject programs, or any other matter, is current, correct or
accurate as delivered. Any risk of damage due to any possible
inaccurate information is assumed by the user of the information.
Furthermore, the information relating to the subject programs
and/or the file formats created or accessed by the subject
programs and/or the algorithms used by the subject programs is
subject to change without notice.
If the version of this file is marked as a NOTIFICATION OF CHANGE,
the content defines an Early Feature Specification (EFS) change
to the .ZIP file format that may be subject to modification prior
to publication of the Final Feature Specification (FFS). This
document may also contain information on Planned Feature
Specifications (PFS) defining recognized future extensions.
IV. Change Log
--------------
Version Change Description Date
------- ------------------ ----------
5.2 -Single Password Symmetric Encryption 06/02/2003
storage
6.1.0 -Smartcard compatibility 01/20/2004
-Documentation on certificate storage
6.2.0 -Introduction of Central Directory 04/26/2004
Encryption for encrypting metadata
-Added OS/X to Version Made By values
6.2.1 -Added Extra Field placeholder for 04/01/2005
POSZIP using ID 0x4690
-Clarified size field on
"zip64 end of central directory record"
6.2.2 -Documented Final Feature Specification 01/06/2006
for Strong Encryption
-Clarifications and typographical
corrections
6.3.0 -Added tape positioning storage 09/29/2006
parameters
-Expanded list of supported hash algorithms
-Expanded list of supported compression
algorithms
-Expanded list of supported encryption
algorithms
-Added option for Unicode filename
storage
-Clarifications for consistent use
of Data Descriptor records
-Added additional "Extra Field"
definitions
6.3.1 -Corrected standard hash values for 04/11/2007
SHA-256/384/512
6.3.2 -Added compression method 97 09/28/2007
-Documented InfoZIP "Extra Field"
values for UTF-8 file name and
file comment storage
V. General Format of a .ZIP file
--------------------------------
Files stored in arbitrary order. Large .ZIP files can span multiple
volumes or be split into user-defined segment sizes. All values
are stored in little-endian byte order unless otherwise specified.
Overall .ZIP file format:
[local file header 1]
[file data 1]
[data descriptor 1]
.
.
.
[local file header n]
[file data n]
[data descriptor n]
[archive decryption header]
[archive extra data record]
[central directory]
[zip64 end of central directory record]
[zip64 end of central directory locator]
[end of central directory record]
A. Local file header:
local file header signature 4 bytes (0x04034b50)
version needed to extract 2 bytes
general purpose bit flag 2 bytes
compression method 2 bytes
last mod file time 2 bytes
last mod file date 2 bytes
crc-32 4 bytes
compressed size 4 bytes
uncompressed size 4 bytes
file name length 2 bytes
extra field length 2 bytes
file name (variable size)
extra field (variable size)
B. File data
Immediately following the local header for a file
is the compressed or stored data for the file.
The series of [local file header][file data][data
descriptor] repeats for each file in the .ZIP archive.
C. Data descriptor:
crc-32 4 bytes
compressed size 4 bytes
uncompressed size 4 bytes
This descriptor exists only if bit 3 of the general
purpose bit flag is set (see below). It is byte aligned
and immediately follows the last byte of compressed data.
This descriptor is used only when it was not possible to
seek in the output .ZIP file, e.g., when the output .ZIP file
was standard output or a non-seekable device. For ZIP64(tm) format
archives, the compressed and uncompressed sizes are 8 bytes each.
When compressing files, compressed and uncompressed sizes
should be stored in ZIP64 format (as 8 byte values) when a
files size exceeds 0xFFFFFFFF. However ZIP64 format may be
used regardless of the size of a file. When extracting, if
the zip64 extended information extra field is present for
the file the compressed and uncompressed sizes will be 8
byte values.
Although not originally assigned a signature, the value
0x08074b50 has commonly been adopted as a signature value
for the data descriptor record. Implementers should be
aware that ZIP files may be encountered with or without this
signature marking data descriptors and should account for
either case when reading ZIP files to ensure compatibility.
When writing ZIP files, it is recommended to include the
signature value marking the data descriptor record. When
the signature is used, the fields currently defined for
the data descriptor record will immediately follow the
signature.
An extensible data descriptor will be released in a future
version of this APPNOTE. This new record is intended to
resolve conflicts with the use of this record going forward,
and to provide better support for streamed file processing.
When the Central Directory Encryption method is used, the data
descriptor record is not required, but may be used. If present,
and bit 3 of the general purpose bit field is set to indicate
its presence, the values in fields of the data descriptor
record should be set to binary zeros.
D. Archive decryption header:
The Archive
JGiser
- 粉丝: 8107
- 资源: 5122
最新资源
- "自动化系统、楼宇智能化与远程手机APP控制:揭秘现代控制系统发展趋势",自动化系统 自动化控制系统 楼宇自动化系统 智能化系统管理服 手机APP远程控制系统 ,核心关键词:自动化系统; 自动化控制
- 欧姆龙PLC与威纶触摸屏配方程序:ST语言编写,适用于CJ2M与CP1H PLC,带催款功能供自动化控制学习参考,欧姆龙OMRON PLC程序,威纶触摸屏螺丝机 配方程序 用ST语言编写程序+威纶
- IMG_7620.jpg
- TMS320F28335光伏并网逆变器资料合集(原理图、PCB设计、源代码及说明书,离网状态也涵盖),TMS320F28335光伏并网逆变器生产资料(另有离网状态 ),包含(原理图 PCB 源代码,说
- 空中鼠标电路设计资料:发射板与接收板原理详解及功能应用,量产空中鼠标电路设计资料 原理图+PCB资料 空中鼠标硬件由两个部分组成,鼠标端(发射板)和USB端(接收板) ◆ 发射板主要器件是STM3
- 恒压供水一对一变频智能控制系统:西门子PLC与ABB变频器联动,实现高效恒压供水解决方案,恒压供水一对一变频(一拖二 ) 1.采用西门子224xp plc ,昆仑通态触摸屏; 2.一对一变频,一台变频
- 三菱Q13大型PLC生产线码垛设备程序:集成四轴机器人、扫码枪与以太网通讯,配备20轴定位模块及CC-LINK远程IO模块,三菱Q13大型PLC生产线码垛设备程序,该程序应用四轴机器人,扫码枪,以太网
- 基于Django+MySQL+Bootstrap开发的靓号管理系统源码
- 大功率平衡车与扭扭车开发资料大全:原理图、矢量源码、BOM清单及电机学习资源,大功率平衡车,扭扭车 图纸 源码 平衡车原理图 pcb 矢量源码非库函数, Bom清单 物料表等资料 500W功率 ST
- 三菱伺服定长追剪系统Q172DSCPU高级同步模式的技术解析与参数设置指导,三菱伺服定长追剪,系统为Q172DSCPU,高级同步模式 包含一个程序例子,有详细的机械参数分析,伺服参数设置,以及追剪凸
- 恒压供水控制器全套生产方案:一拖四PID控制,性能稳定,广泛应用于水泵厂家现场设备,实现卓越恒压闭环控制,恒压供水控制器全套生产方案,该方案一拖四,PID控制,功能强大,运行性能稳定,已批量配套水泵厂
- LabVIEW串口读取波形数据源代码:实现波形的实时接收与处理,LabVIEW串口读取波形源程序 ,LabVIEW; 串口; 读取; 波形源程序,"LabVIEW串口读取波形源码程序"
- 欧姆龙CP1H-XA PLC与台达VFD-M/三菱E700变频器Modbus RTU通讯:控制、监测与设置说明,欧姆龙CP1H-XA modbus rtu方式通讯台达 三菱E700 硬件:欧姆
- STM32F103C8T6芯片IAP OTA升级方案,含上位机与下位机源码(VS2019 NET4.5与Keil5. 25),可移植性强,采用ymode 1k协议启动BootLoader升级 ,STM
- STM8智能车载空气净化器完整设计资料分享:原理图、PCB板及源代码详解,打造健康行车环境,量产stm8智能车载空气净化器的完整设计资料 包含:(原理图+PCB+源代码注释详细) 智能车载空气净化器介
- 植保机电无感电机控制器软硬件全套方案:FOC矢量控制算法与永磁同步电机驱动源码,全开源含观测器,稳定性极佳,含硬件原理图及BOM表等全套资料,植保机电调无感电机控制器软硬件方案全套,FOC矢量控制 算
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
- 3
前往页