Reputation: 134
I need to compress folder with files in .7z
format.
I use SevenZip for it with class SevenZipCompressor.cs
.
There are a method CompressFilesEncrypted()
. How to compress folder with files?
Any help is appreciated!
Upvotes: 1
Views: 1252
Reputation: 38455
you could use some thing like http://code.google.com/p/tar-cs/ to create a tar file then compress the tar file!
Upvotes: 0
Reputation: 117220
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.
Upvotes: 3