使用 .NET 4.5 解压缩受密码保护的 ZIP 文件 [英] Decompressing password-protected ZIP files with .NET 4.5

查看:22
本文介绍了使用 .NET 4.5 解压缩受密码保护的 ZIP 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft 在 System.IO.Compression 命名空间.即类 ZipArchiveZipFile.但是,我还没有看到对受密码保护的文件使用本机 .NET ZIP 文件处理的方法.有没有办法实现这一目标?(我知道有相当不错的 3rd 方 zip 文件库,这不是问题.)

Microsoft introduces improvements for ZIP file handling in .NET 4.5 in the System.IO.Compression namespace. Namely the classes ZipArchive and ZipFile. However, I have not yet seen a way to use native .NET ZIP file handling for password protected files. Is there a way to achieve this? (I am aware that there are pretty good 3rd party zip file libraries, that is not the question.)

推荐答案

很遗憾没有..Net Framework 4.5 不支持受密码保护的 zip 文件.在这种情况下,您必须切换到知名的第 3 方库之一.

Unfortunately not. There is no support within the .Net Framework 4.5 for password protected zip files. In this case you have to switch to one of the well known 3rd party libraries.

这篇关于使用 .NET 4.5 解压缩受密码保护的 ZIP 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆