ssdeep

Compute and compare fuzzy hashes of files for similarity detection

brewmacoslinux
Try with needOr install directly
Source

About

Recursive piecewise hashing tool

Commands

ssdeep

Examples

Generate fuzzy hash for a single file$ ssdeep file.txt
Recursively hash all files in a directory and save to file$ ssdeep -r /path/to/directory > hashes.txt
Compare a file against a database of hashes to find similar files$ ssdeep -m hashes.txt suspect_file.txt