koder_mooder
koder_mooder

Reputation: 134

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

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

Answers (2)

Peter
Peter

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

leppie
leppie

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

Related Questions