SYD-SUM(1)

# NAME

*syd-sum* - Calculate checksum of the given file or standard input

# SYNOPSIS

*syd-sum* _-a alg_ _[-bhx]_ _<file|->_

# DESCRIPTION

Given a file, calculate the checksum of the file using the Linux Kernel
Crypto API (AF_ALG).

Only regular files and FIFOs (pipes) may be hashed.

Given no positional arguments or "-" as argument, calculate checksum of
standard input.

# OPTIONS

|[ *-a* *alg*
:< Hash algorithm to use (required).
|[
:< Any algorithm listed in proc_crypto(5) with type _ahash_ or _shash_ may be used.
|[
:< Use *-a list* to list available algorithms.
|[
:< Examples: sha256, sha512, sha3-512, blake2b-256, md5, crc32c
|[ *-b*
:< Binary output.
|[ *-x*
:< Hexadecimal output (default).
|[ *-h*
:< Display help.

# EXAMPLES

```
syd-sum -a sha256 /usr/bin/syd
echo hello | syd-sum -a blake2b-512
syd-sum -a crc32c -b /etc/passwd > /tmp/crc.bin
```

# SEE ALSO

_syd_(1), _syd_(2), _syd_(5), _syd-path_(1), _proc_crypto_(5)

*syd* homepage: https://sydbox.exherbo.org/

# AUTHORS

Maintained by Ali Polatel. Up-to-date sources can be found at
https://gitlab.exherbo.org/sydbox/sydbox.git and bugs/patches can be
submitted to https://gitlab.exherbo.org/groups/sydbox/-/issues. Discuss
in #sydbox on Libera Chat or in #sydbox:mailstation.de on Matrix.
