All Projects → adamhathcock → Sharpcompress

adamhathcock / Sharpcompress

Licence: mit
SharpCompress is a fully managed C# library to deal with many compression types and formats.

Projects that are alternatives of or similar to Sharpcompress

Bit7z
A C++ static library offering a clean and simple interface to the 7-zip DLLs.
Stars: ✭ 159 (-88.62%)
Mutual labels:  zip, tar, compression, gzip
Leanify
lightweight lossless file minifier/optimizer
Stars: ✭ 694 (-50.32%)
Mutual labels:  zip, tar, compression, gzip
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (-84.47%)
Mutual labels:  compression, gzip, zip, tar
Compress
Optimized Go Compression Packages
Stars: ✭ 2,478 (+77.38%)
Mutual labels:  compression, gzip, zip
Archiver
Easily create & extract archives, and compress & decompress files of various formats
Stars: ✭ 3,373 (+141.45%)
Mutual labels:  zip, tar, gzip
Swcompression
A Swift framework for working with compression, archives and containers.
Stars: ✭ 110 (-92.13%)
Mutual labels:  zip, tar, gzip
Libarchivejs
Archive library for browsers
Stars: ✭ 145 (-89.62%)
Mutual labels:  zip, tar, gzip
Datacompression
Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)
Stars: ✭ 191 (-86.33%)
Mutual labels:  zip, compression, gzip
Turbobench
Compression Benchmark
Stars: ✭ 211 (-84.9%)
Mutual labels:  zip, compression, gzip
Unifiedarchive
UnifiedArchive - an archive manager with a unified way for different formats. Supports all basic (listing, reading, extracting and creation) and specific features (compression level, password-protection). Bundled with console program for working with archives.
Stars: ✭ 246 (-82.39%)
Mutual labels:  zip, tar, gzip
compress
compress and uncompress for Deno
Stars: ✭ 29 (-97.92%)
Mutual labels:  gzip, zip, tar
zipstream
A command line tool that allows you to easily share files and directories over the network
Stars: ✭ 49 (-96.49%)
Mutual labels:  gzip, zip, tar
Zippy
Pure Nim implementation of deflate, zlib, gzip and zip.
Stars: ✭ 88 (-93.7%)
Mutual labels:  zip, compression, gzip
Decompress
Extracting archives made easy
Stars: ✭ 316 (-77.38%)
Mutual labels:  zip, tar
Zoonavigator
Web-based ZooKeeper UI / editor / browser
Stars: ✭ 326 (-76.66%)
Mutual labels:  compression, gzip
Zip
A portable, simple zip library written in C
Stars: ✭ 596 (-57.34%)
Mutual labels:  zip, compression
Compressing
Everything you need for compressing and uncompressing
Stars: ✭ 268 (-80.82%)
Mutual labels:  tar, gzip
Libzip
A C library for reading, creating, and modifying zip archives.
Stars: ✭ 379 (-72.87%)
Mutual labels:  zip, compression
Ugrep
🔍NEW ugrep v3.1: ultra fast grep with interactive query UI and fuzzy search: search file systems, source code, text, binary files, archives (cpio/tar/pax/zip), compressed files (gz/Z/bz2/lzma/xz/lz4), documents and more. A faster, user-friendly and compatible grep replacement.
Stars: ✭ 626 (-55.19%)
Mutual labels:  zip, tar
Gulp Zip
ZIP compress files
Stars: ✭ 262 (-81.25%)
Mutual labels:  zip, compression

SharpCompress

SharpCompress is a compression library in pure C# for .NET Standard 2.0, 2.1, .NET Core 3.1 and .NET 5.0 that can unrar, un7zip, unzip, untar unbzip2, ungzip, unlzip with forward-only reading and file random access APIs. Write support for zip/tar/bzip2/gzip/lzip are implemented.

The major feature is support for non-seekable streams so large files can be processed on the fly (i.e. download stream).

GitHub Actions Build - GitHubActions

Need Help?

Post Issues on Github!

Check the Supported Formats and Basic Usage.

Recommended Formats

In general, I recommend GZip (Deflate)/BZip2 (BZip)/LZip (LZMA) as the simplicity of the formats lend to better long term archival as well as the streamability. Tar is often used in conjunction for multiple files in a single archive (e.g. .tar.gz)

Zip is okay, but it's a very hap-hazard format and the variation in headers and implementations makes it hard to get correct. Uses Deflate by default but supports a lot of compression methods.

RAR is not recommended as it's a propriatory format and the compression is closed source. Use Tar/LZip for LZMA

7Zip and XZ both are overly complicated. 7Zip does not support streamable formats. XZ has known holes explained here: (http://www.nongnu.org/lzip/xz_inadequate.html) Use Tar/LZip for LZMA compression instead.

A Simple Request

Hi everyone. I hope you're using SharpCompress and finding it useful. Please give me feedback on what you'd like to see changed especially as far as usability goes. New feature suggestions are always welcome as well. I would also like to know what projects SharpCompress is being used in. I like seeing how it is used to give me ideas for future versions. Thanks!

Please do not email me directly to ask for help. If you think there is a real issue, please report it here.

Want to contribute?

I'm always looking for help or ideas. Please submit code or email with ideas. Unfortunately, just letting me know you'd like to help is not enough because I really have no overall plan of what needs to be done. I'll definitely accept code submissions and add you as a member of the project!

TODOs (always lots)

  • RAR 5 decryption support
  • 7Zip writing
  • Zip64 (Need writing and extend Reading)
  • Multi-volume Zip support.

Version Log

Version 0.18

Version 0.17.1

Version 0.17.0

Version 0.16.2

Version 0.16.1

Version 0.16.0

Version 0.15.2

  • Fix invalid headers - fixes an issue creating large-ish zip archives that was introduced with zip64 reading.

Version 0.15.1

Version 0.15.0

Version 0.14.1

Version 0.14.0

Version 0.13.1

Version 0.13.0

  • Breaking change: Big refactor of Options on API.
  • 7Zip supports Deflate

Version 0.12.4

Version 0.12.3

Version 0.12.2

  • Support Profile 259 again

Version 0.12.1

  • Support Silverlight 5

Version 0.12.0

  • .NET Core RTM!
  • Bug fix for Tar long paths

Version 0.11.6

  • Bug fix for global header in Tar
  • Writers now have a leaveOpen bool overload. They won't close streams if not-requested to.

Version 0.11.5

  • Bug fix in Skip method

Version 0.11.4

  • SharpCompress is now endian neutral (matters for Mono platforms)
  • Fix for Inflate (need to change implementation)
  • Fixes for RAR detection

Version 0.11.1

  • Added Cancel on IReader
  • Removed .NET 2.0 support and LinqBridge dependency

Version 0.11

  • Been over a year, contains mainly fixes from contributors!
  • Possible breaking change: ArchiveEncoding is UTF8 by default now.
  • TAR supports writing long names using longlink
  • RAR Protect Header added

Version 0.10.3

  • Finally fixed Disposal issue when creating a new archive with the Archive API

Version 0.10.2

  • Fixed Rar Header reading for invalid extended time headers.
  • Windows Store assembly is now strong named
  • Known issues with Long Tar names being worked on
  • Updated to VS2013
  • Portable targets SL5 and Windows Phone 8 (up from SL4 and WP7)

Version 0.10.1

  • Fixed 7Zip extraction performance problem

Version 0.10:

  • Added support for RAR Decryption (thanks to https://github.com/hrasyid)
  • Embedded some BouncyCastle crypto classes to allow RAR Decryption and Winzip AES Decryption in Portable and Windows Store DLLs
  • Built in Release (I think)

XZ implementation based on: https://github.com/sambott/XZ.NET by @sambott

7Zip implementation based on: https://code.google.com/p/managed-lzma/

LICENSE Copyright (c) 2000 - 2011 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].