Page 1 of 1

hashdeep/md5deep (CLI hashing utilities)

Posted: Sun Jun 24, 2018 1:15 pm
by Midas
If you do any research into hashing tools you're bound to come across multi-platform md5deep/hashdeep (http://md5deep.sourceforge.net/), regarded as more or less the standard solution for anything related.

md5deep is a set of programs to compute MD5, SHA-1, SHA-256, Tiger, or Whirlpool message digests on an arbitrary number of files. md5deep is similar to the md5sum program found in the GNU Coreutils package, but has [...] additional features...
@ http://md5deep.sourceforge.net/


md5deep is FLOSS (source is on Github) with a somewhat peculiar license blurb:
At the time md5deep was originally written, Mr. Kornblum was a Special Agent with the United States Air Force Office of Special Investigations (AFOSI). As such, the program is considered to be a work of the United States Government. Under 17 USC 105, works of the United States Government are not eligible for copyright protection.
@ http://md5deep.sourceforge.net/


md5deep is composed of a set of 12 different command line executables, each one geared towards a different hashing method and OS bitness. Documentation is rather extensive.

Download md5deep/hashdeep v4.4, released 2014-01-29, from https://github.com/jessek/hashdeep/releases.

As a contribution for the problem I brought to a recent discussion, here's a quick'n'dirty™ script to use md5deep to hash and sidecar any file dropped on it: :wink:

Code: Select all

@ECHO OFF

:: Conditional clause below is a crude detector of OS bitness
:: Allowing for running the corresponding executable
:: Made by Midas, 2018-06-24
IF EXIST "%PROGRAMFILES(x86)%" (SET BOS=64
 ) ELSE (SET BOS=""
 )
MD5Deep%BOS% -bk "%1" > "%~n1.md5"

Re: hashdeep/md5deep (CLI hashing utilities)

Posted: Wed Oct 30, 2019 4:27 am
by Midas
Other scripts moved to viewtopic.php?t=6358. :arrow: