Search code examples
c#.netmonozipbzip2

zip lib (zlib, bzip2) and mono support


Can you advise me zip lib witch support zib and bzip2 algorithm

My requirements:

  1. Fully .net managed code
  2. Free
  3. Popular
  4. Can be used with mono

Thanks for all.


Solution

  • Check out SharpZipLib.

    From the FAQ:

    What formats does SharpZipLib support?

    Sharpzip supports Zip files using both stored and deflate compression methods and also supports old (PKZIP 2.0) style and AES encryption, tar with GNU long filename extensions, gzip, zlib and raw deflate, as well as BZip2.

    Zip64 is supported while Deflate64 is not yet supported. AES is supported for encryption and decryption except for the ZipInputStream class (use ZipFile with an input stream until this is completed).

    Can I use SharpZipLib in my commercial application?

    Yes you can, there is an exception in the licensing terms that allows linking #Zip with any application. The source code to #Zip is however still GPLed and so any changes to the source code you make must be made available to everyone.