DIGEST(1)

NAME
digest - calculate message digests

SYNOPSIS
digest [-Vt] algorithm [file ...]

DESCRIPTION
The digest utility calculates message digests of files or, if no file is specified, standard input.

It can also run self tests via the -t command line option; the only self tests currently defined are for the SHA3 set of digests.

The -V command line option prints the version number of digest and exits successfully.

The list of possible algorithms is:

blake2b
    the blake2b algorithm will be used.

blake2s
    the blake2s algorithm will be used.

md5 the md5(3) algorithm will be used.

rmd160
    the rmd160(3) algorithm will be used.

sha1
    the sha1(3) algorithm will be used.

sha256
    the sha256 algorithm will be used.

sha384
    the sha384 algorithm will be used.

sha3_224
    the sha3_224 algorithm will be used.

sha3_256
    the sha3_256 algorithm will be used.

sha3_384
    the sha3_384 algorithm will be used.

sha3_512
    the sha3_512 algorithm will be used.

sha512
    the sha512 algorithm will be used.

tiger
    the tiger algorithm will be used.

whirlpool
    the whirlpool algorithm will be used.

The digest utility is a simple wrapper for the various different algorithm implementations, which are located in the standard C library, and was designed to be scalable as new message digest algorithms are developed.

The digest utility exits 0 on success, and 0 if an error occurs.

SEE ALSO
cksum(1), md5(3), rmd160(3), sha1(3)

HISTORY
The digest utility first appeared in NetBSD 1.6.

AUTHORS
The digest utility was written by Alistair G. Crooks <agc@netbsd.org>.