Skip to content

u84u/hsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSH

A command line program to generate similarity hashes for any arbitrary data.

Build and Run

Requirements: Go 1.25 or newer

go build
./hsh --help
Usage of ./hsh: [OPTION]... [FILE]...
With no FILE, or when FILE is -, read standard input.
Call -algo [ALGO] for each hash you want to generate.
The window flag controls how many bytes to consider for each chunk.
The same algorithm with different window sizes will generate different hashes.

Example: hsh -algo ctph -algo simhash main.go
  -algo value
    	choose a hashing algorithm, available are: ctph, simhash
  -w int
    	window size (default 7)

Output Format

INPUT_FILE ~ ALGO|WINDOW ~ HASH

Currently implemented algorithms are

  • CTPH - Context Triggered Piecewise Hashing (Fuzzy Hashing)
  • SimHash - High Dimensional locality-preserving hash for near duplicate detection

About

A command line program to generate similarity hashes for any arbitrary data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages