An open API service indexing awesome lists of open source software.

https://github.com/codezombiech/multisum

A small utility that creates multiple checksum file in a single read operation
https://github.com/codezombiech/multisum

Last synced: 28 days ago
JSON representation

A small utility that creates multiple checksum file in a single read operation

Awesome Lists containing this project

README

          

# multisum

`multisum` is a small utility that creates multiple checksum files in a single read operation.

The calculated checksum files have the same format as the output generated by the GNU Coreutils `md5sum`, `sha256sum`, `sha512sum` and alike (to be precise, the [Untagged output format](https://www.gnu.org/software/coreutils/manual/html_node/cksum-output-modes.html)). To validate files with the created checksum files, these utils should be used (e.g. `sha256sum --check SHA256SUMS`).

## Usage

multisum --target

where:

- `` is at least one of the supported hashes to calculate checksums for
- `--md5`
- `--sha1`
- `--sha256`
- `--sha512`
- `` is one of the checksum output modes
- `--binary` print checksums in binary mode (*), default
- `--text` print checksums in text mode ( )
- `` is the target directory to write the checksum files (e.g. SHA256SUMS file)
- `` is the source directory to create the checksum files for

### Example

multisum --sha256 --sha512 --target ./checksums/photos ~/photos

This will create a `SHA256SUMS` and `SHA512SUMS` file in the `./checksums/photos` directory for all the files in the `~/photos` directory.