ko1nksm-shlab / sh-fnv1

Implementation of the FNV1 hash function for POSIX shell scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

Implementation of the FNV1 hash function for POSIX shell scripts


Languages

Language:Shell 82.3%Language:Go 15.9%Language:Makefile 1.8%