Showing posts with label MD5. Show all posts
Showing posts with label MD5. Show all posts

Saturday, May 29, 2010

Verify your downloads with checksums

lock-150

If you frequently download large files, such as installation media or LiveCDs, you might have encountered a situation where a file becomes corrupt during the download. You haven't? Let me paint a picture for you.

Your boss wants you to urgently deploy new ESXi server with all the latest updates and he wants it done yesterday. You grab the latest ISO release from the web and, after patiently waiting for it to download, burn it on a CD. You head to the server room, load the CD and… half way through install it complaints about media being corrupt. What happened? Was it the download? Failed burn session? Defective CD drive? Now you have to re-download the image and do it all over again and by now it's 4:30pm on Friday.

I have been there and can show you how to eliminate at least one unknown from the story above. You could verify whether file you downloaded is the same as the file posted on the web site. The process is called checksum or hash sum verification and allows you to check the integrity of your data.

Many sites will provide MD5, SHA1 or SHA256 checksum of the distributed file. All you have to do is compare it to the checksum of the file you have downloaded. How to do that? Here are two ways I use most often...