czar

xar unarchiver (.xar, .pkg, .xip)

czar

clean-room implementation of a XAR unarchiver

status

  • Header
    • Magic
    • Header size
    • Version
    • TOC length (compressed)
    • TOC length (uncompressed)
    • Checksum algorithm
      • None
      • SHA1
      • MD5
  • TOC
    • Extraction
    • Parsing
    • Checksum validation
  • Heap
    • Extraction
      • gzip/zlib
      • bzip2
    • Checksum validation
  • File Metadata

current features

  • archive info
  • file listing
  • checksum validation
  • decompression

usage

Usage: czar [options] <xar_file>
Options:
  --strict      Fail extraction if any checksum validation fails
  --no-extract  Only validate checksums, don't extract files
  --help, -h    Show this help message

Files are extracted to ./<xar_file>.extracted/

examples

# Extract archive with checksum validation
./czar archive.xar

# Validate checksums only (no extraction)
./czar --no-extract archive.xar

# Strict mode - fail if any checksum is invalid
./czar --strict archive.xar

This project, initially authored by Mara Robin Broda in 2018, is licensed under the GNU Lesser General Public License v3.0

Repository

czar

Owner
Statistic
  • 3
  • 0
  • 0
  • 0
  • 1
  • 16 days ago
  • July 10, 2018
License

Links
Synced at

Wed, 13 Aug 2025 10:39:50 GMT

Languages