Passwords and Delphi TZipFile

五迷三道 提交于 2019-12-01 17:09:24

问题


Is Delphi XE5 TZipFile able to handle encrypted/password protected zip files? Or must users use third party software to handle this?

Any help would be appreciated.


回答1:


Looking at the source code for System.Zip, I see no indication of anything that would allow working with encrypted Zip files. There is no provision for specifying a password for either zipping or extracting files or creating a Zip archive.

You could always include support for encrypted archives using Turbo Power Abbrevia, open-sourced several years ago by Turbo Power. It's been updated to support XE5, according to the SVN repository for the project at SourceForge. It's maintained quite well by the contributors to the project, comes with full source code, and is cross-platform (Windows, OS X, and Linux, at least - I don't see any indication of Android or iOS support).



来源:https://stackoverflow.com/questions/21189075/passwords-and-delphi-tzipfile

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