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 on Radicle at rad:z38HCnbmcDegA2BMxuPaPRPMdp6wF. 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.