How to Check MD5 Hash?

MD5 is a message digest algorithm that takes a message of arbitrary length and produces a 128-bits digital signature of the message. It is most widely used for verifying the integrity of the file downloaded from the Web. Since it is almost impossible to produce the same digital signature from different message, by simply comparing the MD5sum of the downloaded file and the MD5 hash provided by the owner, you will know if you have downloaded the exact copy of the file without any error.

In Linux, verifying the Md5sum is easy.

For example, let say you have downloaded the Ubuntu iso file: ubuntu-8.04-desktop-i386.iso and its MD5 file. To check the MD5sum, in your terminal,

md5sum ubuntu-8.04-desktop-i386.iso

and it will produce something like this:

8895167a794c5d8dedcc312fc62f1f1f ubuntu-8.04-desktop-i386.iso

Now, open up the MD5 file (with your text editor) and compare the 32 characters string with the one shown above. If all the figures are correct, then the integrity of your downloaded file is intact.

If the above MD5 hash is stored in the file such as ubuntu-8.04-desktop-i386.iso.md5, you can simply verifying the MD5sum by

md5sum -c ubuntu-8.04-desktop-i386.iso.md5

If all is correct, it will produce the message

ubuntu-8.04-desktop-i386.iso: ok

While Mac users can do the same thing in the terminal, for those who do not want to get their hands dirty, they can use the software: MD5 Filecheck to check the MD5sum. Simply drop the file to the application icon to display the MD5 hash. You can then verify it with the MD5 file.

For Windows users, there are plenty of software available that allow you to check MD5 hash. A small and easy to use software would be MD5 Check.

Slow computer? Try Auslogics BoostSpeed!

Damien Oh is the owner and chief editor of Make Tech Easier

 

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

1 pingback/trackback (Click to open)

[Click to close]

3 Responses

  • James says:

    One of the really nice features of an MD5 is that it can be used for password hashing. This method only sends a challenge/response hash rather than sending your password in clear text. I use it with Wordpress on Apache to secure .htacces on my website. Nice article. Just out of interest, did you know that about two years ago a Japanese scientist proved that you can modify the content of a package without modifying the hash? Pity it hasn’t invalidated speed camera tickets!

    Reply

  • Damien says:

    @James: Nice point. Thanks for informing, I didn’t know that news about the japanese scientist cracking the code.

    Reply

  • Bradley says:

    Hi there,

    I just wrote a free little utility to check md5 files for windows. It associates it’s self with .md5 extensions and will check a file when you double click it’s .md5 counterpart. Also, it will generate md5 files.

    The link is on my blog:

    http://beachbc.blogspot.com/2009/01/summer-of-md5.html

    Cheers,
    -Bradley

    Reply

Leave a Comment




 

Sign in with Twitter

Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again