hasher

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 7 Imported by: 0

README

hasher

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

go install go.foxforensics.dev/hasher@latest

Usage

$ hasher ALGO 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, 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, ImpHash, ImpHash0, SSDeep, TLSH

Windows hashes:

LM, NT, PE

Checksums:

Adler32, Fletcher4, CRC16-CCITT, CRC32-C, 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 algo path

The arguments are:

algo
	    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
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
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
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
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
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
xxh
Package xxh exposes github.com/pierrec/lz4/v4/internal/xxh32
Package xxh exposes github.com/pierrec/lz4/v4/internal/xxh32

Jump to

Keyboard shortcuts

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