Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Build md5deep to calculate checksums UNIX
Tonight I discovered this command line utility for computing and verifying various checksums. The documentation indicates it is similar to md5sum (which does not come standard in Mac OS X, but can be installed via GNU Coreutils or Fink), with the added benefits of:
  • Recursive operations
  • Time estimation
  • Comparison mode
  • File type filters
It also offers the user the ability to do all of the above using fiv different checksum models - md5, sha1, sha256, tiger, and whirlpool. Rather than go into what this can do for the user and what it is used for, I will leave that to the end user. Those familiar with checksum functions will find this a great utility.

After downloading, the utility is easily compiled and installed using:
$ make mac
$ make install
More information and the source code is available here: http://md5deep.sourceforge.net/
    •    
  • Currently 2.50 / 5
  You rated: 5 / 5 (8 votes cast)
 
[14,040 views]  

Build md5deep to calculate checksums | 6 comments | Create New Account
Click here to return to the 'Build md5deep to calculate checksums' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Build md5deep to calculate checksums
Authored by: dbs on Sep 06, '05 10:41:25AM
Is this different from the following built-in commands?

% openssl md5 FILENAME
or

% openssl sha1 FILENAME


[ Reply to This | # ]
Build md5deep to calculate checksums
Authored by: Ranger Rick on Sep 06, '05 11:47:26AM

FYI, I thought this looked cool, so I whipped up a quick fink package of it. It's now in fink unstable for 10.3 and 10.4. Let me know if it works for you, and I'll move it to stable reasonably quickly (since it's really pretty simple).



[ Reply to This | # ]
Build md5deep to calculate checksums
Authored by: atverd on Sep 06, '05 12:23:46PM

There is also standard tool /sbin/md5 and it's part of the OS.



[ Reply to This | # ]
Build md5deep to calculate checksums
Authored by: bluehz on Sep 06, '05 04:57:02PM

It is similar to the standard md5 tools with some extras - the biggest difference is it allows you to recursively checksum a dir or package - the same way md5sum does for linux/unix. It also offers 4 other checksum methods other than md5 - sha1 (standard os x), sha256, tiger, and whirpool. The differences are subtle - but if you use checksums a lot you will definitely benefit from md5deep package.



[ Reply to This | # ]
Build md5deep to calculate checksums
Authored by: bluehz on Sep 06, '05 11:15:17PM
Couple of examples that might help - these and many more are clearly illustrated here - http://md5deep.sourceforge.net/usage.html Given:
dir1
  file_d1_1
  file_d1_2
  file_d1_3
  file_d1_4
  dir2
    file_d2_2
    file_d2_1

Use this to calculate the checksums of all files in the dir1 (including dir2 contents) and output to a file (hash.md5):

md5deep -lr dir1 > hash.md5

Now given your text file of hashes - you can later compare it against the contents of the dirs to ascertain what has changed:

md5deep -rx hash.md5 dir1

This will print a line of text for every file that DOES not match its original hash. In other words - any file that has changed since the original hash was calculated.

Substitute sha1deep, sha256deep, tigerdeep, or whirlpooldeep for md5deep above as desired to determine specific hashes or calculate specific hashes.


[ Reply to This | # ]
Build md5deep to calculate checksums
Authored by: zebrum on Oct 09, '12 06:20:25PM

'make mac' is no longer included in md5deep but instead you can just do this:

find * -iname '*' -exec md5 '{}' \;



[ Reply to This | # ]