{"id":48289659,"url":"https://github.com/idiv-biodiversity/archive-sum","last_synced_at":"2026-04-04T23:02:05.692Z","repository":{"id":141417980,"uuid":"77155171","full_name":"idiv-biodiversity/archive-sum","owner":"idiv-biodiversity","description":"verify archive file integrity","archived":false,"fork":false,"pushed_at":"2024-12-14T14:33:23.000Z","size":202,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-14T15:21:58.642Z","etag":null,"topics":["archive","integrity","verification"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idiv-biodiversity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-22T15:26:41.000Z","updated_at":"2024-05-01T08:06:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6597b32-abc6-475e-853e-0bdd0bd5817d","html_url":"https://github.com/idiv-biodiversity/archive-sum","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/idiv-biodiversity/archive-sum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiv-biodiversity%2Farchive-sum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiv-biodiversity%2Farchive-sum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiv-biodiversity%2Farchive-sum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiv-biodiversity%2Farchive-sum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idiv-biodiversity","download_url":"https://codeload.github.com/idiv-biodiversity/archive-sum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiv-biodiversity%2Farchive-sum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31418287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archive","integrity","verification"],"created_at":"2026-04-04T23:01:58.688Z","updated_at":"2026-04-04T23:02:05.671Z","avatar_url":"https://github.com/idiv-biodiversity.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"archive-sum\n===========\n\nGenerates checksums of files within an [archive file](https://en.wikipedia.org/wiki/Archive_file) without extracting its contents.\n\n[![Build Status](https://travis-ci.com/idiv-biodiversity/archive-sum.svg?branch=master)](https://travis-ci.com/idiv-biodiversity/archive-sum)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9ec02e2f096f40d596cef5eb0b43a101)](https://www.codacy.com/app/idiv-biodiversity/archive-sum?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=idiv-biodiversity/archive-sum\u0026amp;utm_campaign=Badge_Grade)\n\nTable of Contents\n-----------------\n\n\u003c!-- toc --\u003e\n\n- [Usage](#usage)\n  * [Archive Verification](#archive-verification)\n- [Installation](#installation)\n  * [Arch Linux](#arch-linux)\n  * [Manual](#manual)\n- [Supported Archive File Formats](#supported-archive-file-formats)\n- [Supported Hash Functions (Digests)](#supported-hash-functions-digests)\n\n\u003c!-- tocstop --\u003e\n\nUsage\n-----\n\nIn its simplest form, **archive-sum** prints the checksums of the files within an archive:\n\n```console\n$ archive-sum example.tar.gz\nc157a79031e1c40f85931829bc5fc552  example/bar\n258622b1688250cb619f3c9ccaefb7eb  example/baz\nd3b07384d113edec49eaa6238ad5ff00  example/foo\n```\n\nIf you want a different hash function (digest), specify it like this:\n\n```console\n$ archive-sum -d sha256 example.tar.gz\n7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730  example/bar\nbf07a7fbb825fc0aae7bf4a1177b2b31fcf8a3feeaf7092761e18c859ee52a9c  example/baz\nb5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c  example/foo\n```\n\nTo get a more detailed help, take a look at the **archive-sum** help text:\n\n```bash\narchive-sum --help\n```\n\n### Archive Verification\n\nThe primary use of **archive-sum** is to **verify the integrity of archive files** by verifying its contents. First, so you can see and reproduce the entire workflow, lets create an archive:\n\n```bash\nmkdir example\necho foo \u003e example/foo\necho bar \u003e example/bar\necho baz \u003e example/baz\ntar czf example.tar.gz example/\n```\n\nWe can now verify the integrity of the archive by comparing the contents of the archive with the original files:\n\n```console\n$ archive-sum -c example.tar.gz\nexample/foo: OK\nexample/baz: OK\nexample/bar: OK\n```\n\nAs you can see from the output, the content of the archive file is exactly the same as the original. We verified the integrity of the archive file.\n\nInstallation\n------------\n\n### Arch Linux\n\nInstall the [**archive-sum** AUR package](https://aur.archlinux.org/packages/archive-sum/):\n\n```bash\npacaur -S archive-sum\n```\n\n### Manual\n\n**dependencies:**\n\n- the [libarchive](http://www.libarchive.org/) multi-format archive and compression library\n- the [OpenSSL](https://www.openssl.org/) cryptography library\n\n**building:**\n\nThe build requires the dependencies to be available and they are detected using their [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) files.\n\n```bash\nmeson build\nninja -C build\n```\n\n**testing:**\n\n```\nmeson test -C build --no-suite lfs\n```\n\n**install:**\n\n```\nninja -C build install\n```\n\nSupported Archive File Formats\n------------------------------\n\nAll archive formats are supported that your version of libarchive supports (for all possible ones of the latest libarchive version, see [here](https://github.com/libarchive/libarchive/#supported-formats)). The following libarchive man page lists its supported formats:\n\n```bash\nman 5 libarchive-formats\n```\n\nSupported Hash Functions (Digests)\n----------------------------------\n\nAll hash functions are supported that your local version of OpenSSL supports. You can get a list from your OpenSSL installation:\n\n```bash\nopenssl list-message-digest-algorithms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidiv-biodiversity%2Farchive-sum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidiv-biodiversity%2Farchive-sum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidiv-biodiversity%2Farchive-sum/lists"}