nonlibc

Utilties for the discerning C programmer

NAME

fnvsum - hash input using 64-bit FNV1a

SYNOPSIS

fnvsum [OPTIONS] [FILE | -]

DESCRIPTION

Calculate the 64-bit FNV1a hash of FILE; read from standard input if no FILE or when FILE is -

The hash function is FNV1a.

OPTIONS

-? | -h

print usage details

EXIT STATUS

0 on success

EXAMPLE

Hash from stdin:

$ echo -n '/the/enemy/gate/is/down' | fnvsum
7814fb571359f23e  -
$

Hash a file:

$ echo -n '/the/enemy/gate/is/down' > a_file.txt
$ fnvsum a_file.txt
7814fb571359f23e  a_file.txt
$

AUTHORS

Sirio Balmelli; Balmelli Analog & Digital

SEE ALSO

fnv(3)

This utility is part of the nonlibc library.