hn.today

Show HN: ZAR – A new archive format with history, deduplication, encryption

github.com49 points29 comments
Screenshot of Show HN: ZAR – A new archive format with history, deduplication, encryption

ZAR is a Rust-based archive format and toolset intended as a modern alternative to TAR, ZIP, and 7z, combining fast parallel Zstandard compression with random access, deduplication, and versioned history. Files can be added or removed in later commits, preserving earlier archive states until commits are deleted or the archive is compacted. The command-line tool and desktop manager support creating, browsing, searching, testing, converting, and restoring archives; related components provide a reusable library, language bindings for several languages, network file copying, read-only FUSE mounting, and tools for AI clients. ZAR can also import or extract a range of common archive formats, with stated limits on unsupported encrypted archives, links, and special entries.

The design emphasizes security and integrity: AES-256-GCM or ChaCha20-Poly1305 encryption with Argon2id, configurable encryption scope and per-commit passwords, checksummed blocks, damage scanning, and extraction protections against path traversal. The project reports a benchmark in which creating a 525 MiB Linux source archive took about one second and extracting it under one second on a particular machine; 7z produced a smaller file but took roughly 27 seconds to create. These are single-run, machine- and cache-dependent results, not universal performance claims. ZAR’s history, random access, and broad integration options distinguish it from conventional archive formats, though its advantages should be weighed against its own format’s compatibility and the documented feature limitations.

Read on github.com29 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.