@kszongic/fnv-hash-cli
v1.0.0
Published
Fast FNV-1a hash for strings and files. Zero dependencies.
Maintainers
Readme
fnv-hash-cli
Fast FNV-1a hash for strings and files. Zero dependencies.
Install
npm install -g @kszongic/fnv-hash-cliUsage
# Hash a string (32-bit, default)
$ fnv-hash "hello world"
d58b3fa7
# Hash with 64-bit
$ fnv-hash --64 "hello world"
779a65e7023cd2e7
# Hash a file
$ fnv-hash --file package.json
a3b2c1d0
# Pipe from stdin
$ echo "hello" | fnv-hashOptions
| Flag | Description |
|------|-------------|
| --32 | FNV-1a 32-bit (default) |
| --64 | FNV-1a 64-bit |
| --file, -f | Hash a file |
| --help, -h | Show help |
| --version, -v | Show version |
Why FNV-1a?
FNV-1a is a fast, non-cryptographic hash with excellent distribution. Perfect for hash tables, checksums, and fingerprinting. Not suitable for security purposes.
License
MIT © kszongic
