简体   繁体   English

C#.NET-将加密文件压缩为7z格式

[英]C#.NET - Compress Encrypted Files to 7z Format

I need to compress folder with files in .7z format. 我需要使用.7z格式的文件压缩文件夹。

I use SevenZip for it with class SevenZipCompressor.cs . 我使用SevenZipCompressor.cs类的SevenZipCompressor.cs There are a method CompressFilesEncrypted() . 有一种方法CompressFilesEncrypted() How to compress folder with files? 如何使用文件压缩文件夹?

Any help is appreciated! 任何帮助表示赞赏!

It is impossible to compress an encrypted file (at least with any decent cipher). 不可能压缩加密的文件(至少使用任何体面的密码)。

You need to compress, then encrypt to get the 'desired' result. 您需要压缩,然后加密以获得“所需”结果。

您可以使用http://code.google.com/p/tar-cs/之类的东西来创建tar文件,然后压缩tar文件!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM