hasher

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 6 Imported by: 0

README

hasher

Multi-algorithm hasher supporting cryptographic, performance, perceptual and similarity hashes, as well as different checksums.

go install go.foxforensics.eu/hasher@latest

Usage

$ hasher ALGORITHM PATH

Algorithms

Cryptographic hashes:

BLAKE2S-256, BLAKE2B-256, BLAKE2B-384, BLAKE2B-512, BLAKE3-256, BLAKE3-512, GOST2012-256, GOST2012-512, HAS-160, LSH-256, LSH-512, MD2, MD4, MD5, MD6, RIPEMD-160, SHAKE128, SHAKE256, SHA1, SHA224, SHA256, SHA512, SHA3-224, SHA3-256, SHA3-384, SHA3-512, Skein-224, Skein-256, Skein-384, Skein-512, SM3, Whirlpool

Performance hashes:

DJB2, FNV-1, FNV-1a, Murmur3, RapidHash, SipHash, XXH32, XXH64, XXH3

Perceptual hashes:

Average, Difference, Median, PHash, WHash, MarrHildreth, BlockMean, PDQ, RASH

Similarity hashes:

ImpFuzzy, ImpHashO, ImpHashS, sdhash, SSDeep, TLSH

Windows specific:

LM, NT, PE

Unix specific:

BSD, ELF, SYSV

Checksums:

Adler32, Fletcher4, Luhn, CRC16-CCITT, CRC32-C, CRC32-K, CRC32-IEEE, CRC64-ECMA, CRC64-ISO

License

Released under the MIT License.

Documentation

Overview

Multi-algorithm hasher supporting cryptographic, performance, perceptual and similarity hashes.

Usage:

hasher algorithm path

The arguments are:

algorithm
	    Hash algorithm to used (required).
path
	    File or folder to hash (required).

Directories

Path Synopsis
Package hash provides general hash functions.
Package hash provides general hash functions.
internal
checksum/kermit
Package kermit source: https://github.com/joaojeronimo/go-crc16/blob/master/crc16-kermit.go
Package kermit source: https://github.com/joaojeronimo/go-crc16/blob/master/crc16-kermit.go
checksum/luhn
Package luhn source: https://github.com/theplant/luhn/blob/master/luhn.go
Package luhn source: https://github.com/theplant/luhn/blob/master/luhn.go
performance/xxh
Package xxh exposes github.com/pierrec/lz4/v4/internal/xxh32
Package xxh exposes github.com/pierrec/lz4/v4/internal/xxh32
similarity/imphash
Package imphash based on https://github.com/omarghader/pefile-go/blob/master/pe/pe.go
Package imphash based on https://github.com/omarghader/pefile-go/blob/master/pe/pe.go
unix/bsd
Package bsd
Package bsd
unix/elf
Package elf source: https://en.wikipedia.org/wiki/PJW_hash_function
Package elf source: https://en.wikipedia.org/wiki/PJW_hash_function
unix/sysv
Package sysv
Package sysv
windows/lm
Package lm source: https://github.com/staaldraad/go-ntlm/blob/master/ntlm/crypto.go
Package lm source: https://github.com/staaldraad/go-ntlm/blob/master/ntlm/crypto.go
windows/nt
Package nt source: https://github.com/staaldraad/go-ntlm/blob/master/ntlm/md4/md4.go
Package nt source: https://github.com/staaldraad/go-ntlm/blob/master/ntlm/md4/md4.go
windows/pe
Package pe source: https://github.com/saferwall/pe/blob/v1.5.7/helper.go#L552
Package pe source: https://github.com/saferwall/pe/blob/v1.5.7/helper.go#L552

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL