File integrity is no joke and system administrator know this is a problem that can result in unnecessary support tickets. If the users can be provided with the hash of a working document it can help narrow down the amount of variables. The problem administrators face is that unlike users, administrator have to manage servers with hundreds of thousands of files in each directory that have to be hashed. This lends it self to a few problems : hashing file by file is out of the question and a waste of time, which means we are left to find a solution that can work on a recursive manner.
Recursive operation – md5deep is able to recursive examine an entire directory tree. That is, compute the MD5 for every file in a directory and for every file in every subdirectory.
On the Windows platform you can use md5deep which is cross platform, works perfectly on Windows and best of all can handle a large number of files without breaking a sweat. It will literally create a checksum for all the files on the directory where md5deep is being used, the results are then exported to a single file where they can be used for verification at a later time.
md5deep is a software package used in the computer security, system administration and computer forensics communities for purposes of running large numbers of files through any of several different cryptographic digests.
Source: Wikipedia http://en.wikipedia.org/wiki/Md5deep
md5deep is managed from the command line, however it’s very easy to use considering it will be in charge of creating checksums for a large number of individual files.
How do we use it ?
First of all you can download md5deep from SourceForge.net.
After you download md5deep I recommend you move the executable to the C:\Windows directory for easy access from the command prompt.
For this tutorial I will be hashing a single directory. Start by opening the command prompt :
Start > Accessories > Command Prompt
On the Command Prompt type :
md5deep -rel "test_directory" > results_file.md5
Explanation of the command
- r = recursive operation
- e = compute estimated time remaining for file name
- l = print relative paths for file name
- “test_directory” = this points md5deep to the directory you wish to checksum
- > results_file.md5 = is the file where all the results will be written to, you can name it whatever you want.
After md5deep is done you can open results_file.md5 to view and analyze the results.
Conclusion
md5deep is a simple tool that should be part of your arsenal, it might come in handy at a later time. Keep in mind that md5deep like tools will always require processing power, so try to use it during the light hours of the day.











