clean-room implementation of a XAR unarchiver
- 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
- Extraction
- File Metadata
- archive info
- file listing
- checksum validation
- decompression
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/
# 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