Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 380 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 380 Bytes

sh-fnv1

Implementation of the FNV1 hash function for POSIX shell scripts

Note: These were written for the purpose of calculating hash values for multiple small strings, not files.

Usage

echo "Hello World" | fnv1
# => 12a9a437

fnv1_str $'Hello World\n' $'Hello World\n'

echo "Hello World" | fnv1a
# => d8ea85d7

fnv1a_str $'Hello World\n' $'Hello World\n'