/hashcheck

Check if a list of hashes exist in another list of hashes

Primary LanguageCMIT LicenseMIT

hashcheck

Check if a list of hashes exist in another list of hashes.

Who?

What?

A POSIX C multithreaded application to check a list of hashes to see if any are present in another list of hashes.

  • Supports MD5 and SHA1.

Where?

Why?

  • Originally written to provide a fast way to check if any of a list of hashes are present in the NSRL hash set.
  • But the haystack doesn't have to be the NSRL hash set.

How?

To compile from source:

gcc -pthread -o hashcheck hashcheck.c

To run:

$ ./hashcheck 
hashcheck - check a list of hashes to see if they're in another list of hashes.
usage: hashcheck needles.txt --md5|--sha1 [haystack.txt]
haystack.txt defaults to either md5.txt or sha1.txt in the current directory.
1000 haystack items per thread with a maximum of 3 threads.