Can an encrypted zip-file also protect it's internal directory

有些话、适合烂在心里 提交于 2019-12-01 08:40:21

问题


I'm creating an encrypted zip file using DotNetZip using WinZip AES 256. However I'm able to read the directory and even to remove some of the zipentries without having the encryption key.

As far as I understand the directory visibility is a limitation of the Zip format. I just wonder, if this also applies for any changes in removing / adding components to the zip file or does there exist a way for preventing such changes.

EDIT:

A quick read of Zip File Format seems to show, that double zipping seems to be the only solution to prevent random removal / addition of comoponents in a zipfile, regardless of encryption of the single entry.


回答1:


From the kb of the Winzip last update last updated 20 Feb, 2013:

To hide the names of the files in your encrypted Zip file, you can double zip them. To do this:

So I'll say no :-)

Winrar has an option to encrypt the filenames, sadly the algorithm isn't public.



来源:https://stackoverflow.com/questions/18122568/can-an-encrypted-zip-file-also-protect-its-internal-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!