https://github.com/raspi/tarkistaja
List file checksums inside of compressed archive
https://github.com/raspi/tarkistaja
archive checksum-calculation command-line-tool go golang gzip tar zip
Last synced: 9 months ago
JSON representation
List file checksums inside of compressed archive
- Host: GitHub
- URL: https://github.com/raspi/tarkistaja
- Owner: raspi
- License: mit
- Created: 2020-07-07T15:12:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T18:01:52.000Z (almost 6 years ago)
- Last Synced: 2025-02-25T22:46:31.003Z (over 1 year ago)
- Topics: archive, checksum-calculation, command-line-tool, go, golang, gzip, tar, zip
- Language: Makefile
- Homepage:
- Size: 856 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README



# tarkistaja
List file checksums inside of compressed archive
# Features
* Archives
* Everything that [archiver](https://github.com/mholt/archiver) supports
* Checksum methods
* [sha1](https://en.wikipedia.org/wiki/SHA-1)
* [sha256](https://en.wikipedia.org/wiki/SHA-2)
* [sha512](https://en.wikipedia.org/wiki/SHA-2)
* [md5](https://en.wikipedia.org/wiki/MD5)
# Examples
% tarkistaja -m md5 test.zip
d41d8cd98f00b204e9800998ecf8427e empty.txt
746308829575e17c3331bbcb00c0898b hello.txt
Add archive file name as a directory as additional information:
% tarkistaja -m md5 -a test.zip
d41d8cd98f00b204e9800998ecf8427e test.zip/empty.txt
746308829575e17c3331bbcb00c0898b test.zip/hello.txt
Write checksums to a file:
% tarkistaja -o checksums.sha256 -a test.zip
2020/07/07 19:31:37 hashing "empty.txt"
2020/07/07 19:31:37 hashing "hello.txt"
2020/07/07 19:31:37 Done.
% cat checksums.sha256
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 test.zip/empty.txt
d9014c4624844aa5bac314773d6b689ad467fa4e1d1a50a1b8a99d5a95f72ff5 test.zip/hello.txt
# Usage
```
tarkistaja v1.0.0 - (2020-07-07T19:38:16+03:00)
(c) Pekka Järvinen 2020- [ https://github.com/raspi/tarkistaja ]
List file checksums inside of compressed archive.
Usage:
tarkistaja [parameters]
Parameters:
-a Add archive's file name as a directory name (as additional information)
-m string
Checksum method (sha1, sha256, sha512, md5) (default "sha256")
-o string
Output checksums to file instead of STDOUT
Examples:
List checksums:
tarkistaja important_files.zip
List checksums to file:
tarkistaja -o checksums.sha256 important_files.zip
List checksums using md5:
tarkistaja -m md5 important_files.zip
Add archive file name as directory for additional information:
tarkistaja -a important_files.zip
```
# Requirements
* Operating system
* GNU/Linux
* x64 arm arm64 ppc64 ppc64le
* Microsoft Windows
* x64
* Darwin (Apple Mac)
* x64
* FreeBSD
* x64 arm
* NetBSD
* x64 arm
* OpenBSD
* x64 arm arm64
# Get source
git clone https://github.com/raspi/tarkistaja
# Developing
* Make changes
* `make`
* Create new version tag `vX.Y.Z` to VCS
* `make release`
Requirements:
* upx for compressing binaries
# License
MIT