首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

用AES加密时,ZIP文件中各个文件的解密头是怎么来生成的

2014-06-28 
用AES加密时,ZIP文件中各个文件的解密头是如何来生成的。有源代码,有文档资料都可以。希望详细一点。[解决办

用AES加密时,ZIP文件中各个文件的解密头是如何来生成的。
有源代码,有文档资料都可以。希望详细一点。

[解决办法]
http://csrc.nist.gov/encryption/aes/rijndael/Rijndael.pdf
[解决办法]
Archive decryption header:

The Archive Decryption Header is introduced in version 6.2
of the ZIP format specification. This record exists in support
of the Central Directory Encryption Feature implemented as part of
the Strong Encryption Specification as described in this document.
When the Central Directory Structure is encrypted, this decryption
header will precede the encrypted data segment. The encrypted
data segment will consist of the Archive extra data record (if
present) and the encrypted Central Directory Structure data.
The format of this data record is identical to the Decryption
header record preceding compressed file data. If the central
directory structure is encrypted, the location of the start of
this data record is determined using the Start of Central Directory
field in the Zip64 End of Central Directory record. Refer to the
section on the Strong Encryption Specification for information
on the fields used in the Archive Decryption Header record.

[解决办法]
不过我觉得因该不用每个文件都生成解密头吧~密匙一个就好,应该是放在header里面的~
[解决办法]
zip标准文档见www.pkzip.com

热点排行