Tiny program to generate various kinds of digests. Drop-in replacement for sum, cksum, shasum, etc.
C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
COPYING
Makefile
README
adler32.c
adler32.h
bsd.c
bsd.h
cksum.c
cksum.h
crc32.c
crc32.h
dep.mf
digest.1
digest.h
finalize.c
finalize.h
main.c
md5.c
md5.h
output.c
output.h
sha1.c
sha1.h
sha2.c
sha2.h
sysv.c
sysv.h

README

digest is a tiny program to compute various kinds of digests. digest is designed
to be a drop-in-replacement for the following utilities: sum, cksum, shasum,
sha1sum, sha224sum, and sha256sum. It is capable of computing a wide range of
checksums. See digest.1 for more details.

digest should compile on any unixoid platform. The code uses only C89 language
features, some C99 headers (stdint.h) and POSIX functions. The only non-standard
function digest uses is alloca(). digest assumes that alloca is declared in
<stdlib.h>.

In cksum mode, digest mostly obeys POSIX, except for the fact that it still
supports all its flags, even though POSIX states that cksum takes no flags.

This program installs itself as a series of hardlinks for all the programs it
can emulate. If you want to add or remove digests, edit main.c and remove the
appropriate lines from digests.