Skip to content

coderobe/czar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published