In this post I will explain you about an interesting cryptographic algorithm called MD5 (Message-Digest algorithm 5). This algorithm is mainly used to perform file integrity checks under most circumstances. Here I will not jump into the technical aspects of this algorithm, rather will tell you about how to make use of this algorithm in your daily life. Before I tell you about how to use MD5, I would like to share one of my recent experience which made me start using MD5 algorithm.
Recently I made some significant changes and updates to my website and as obvious I generated a complete backup of the site on my server. I downloaded this backup onto my PC and deleted the original one on the server. But after a few days something went wrong and I wanted to restore the backup that I downloaded. When I tried to restore the backup I was shocked! The backup file that I used to restore was corrupted. That means, the backup file that I downloaded onto my PC wasn’t exactly the one that was on my server. The reason is that there occured some data loss during the download process. Yes, this data loss can happen often when a file is downloaded from the Internet. The file can be corrupted due to any of the following reasons.
Data loss during the download process, due to instability in the Internet connection/server
The file can be tampered due to virus infections or,
Due to Hacker attacks
So whenever you download any valuable data from the Internet it is completely necessary that you check the integrity of the downloaded file. That is you need to ensure that the downloaded file is exactly the same as that of the original one. In this scenario the MD5 hash can become handy. All you have to do is generate MD5 hash (or MD5 check-sum) for the intended file on your server. After you download the file onto your PC, again generate MD5 hash for the downloaded file.
Compare these two hashes and if it matches then it means that the file is downloaded perfectly without any data loss. A MD5 hash is nothing but a 32 digit hexadicimal number which can be something as follows
A simple MD5 Hash
e4d909c290d0fb1ca068ffaddf22cbd0
This hash is unique for every file irrespective of it’s size and type. That means two .exe files with the same size will not have the same MD5 hash even though they are of same type and size. So MD5 hash can be used to uniquely identify a file.
How to use MD5 Hash to check the Integrity of Files?
Suppose you have a file called backup.tar on your server. Before you download, you need to generate MD5 hash for this file on your server. To do so use the following command.
For UNIX:
md5sum backup.tar
When you hit ENTER you’ll see something as follows
e4d909c290d0fb1ca068ffaddf22cbd0
This is the MD5 hash for the file backup.tar. After you download this file onto your PC, you can cross check it’s integrity by again re-generating MD5 hash for the downloaded file. If both the hash matches then it means that the file is perfect.
Otherwise it means that the file is corrupt. To generate the MD5 hash for the downloaded file on your Windows PC use the following freeware tool.
“You can Download MD5 Summer From Here: http://www.md5summer.org/download.html “.
Nice information about md5 algorithm is provided. I just knew the purpose of this algorithm and learn all about how it is used with the help of this article. Thank you for this useful detail.
ReplyDeleteelectronic signature software
I'm really impressed with your writing abilities as neatly as with the structure on
ReplyDeleteyour blog. Is this a paid topic or did you modify it yourself?
Anyway stay up the excellent quality writing, it's rare to peer a nice weblog
like this one today..
My web site :: mujeres solteras
It's very straightforward to find out any matter on net
ReplyDeleteas compared to books, as I found this paragraph at this site.
my web site ... buscar mujeres
This is the right webpage for everyone who really wants to find out about this topic.
ReplyDeleteYou know a whole lot its almost hard to argue with you (not that I personally would want to…HaHa).
You definitely put a new spin on a topic that has been written about for many years.
Great stuff, just great!
Feel free to surf to my web blog: How And Also Hardwearing . Home Safe And Sound wireless home security systems
Howdy! I could have sworn I've been to this blog before but
ReplyDeleteafter reading through some of the post I realized it's new to me.
Anyways, I'm definitely delighted I found it and I'll be bookmarking and checking back often!
Here is my weblog :: http://nouveauclashofclanstriche.blogspot.com/
Hey! I know this is somewhat off topic but I was wondering which blog platform are you using for this
ReplyDeletesite? I'm getting sick and tired of Wordpress because I've
had problems with hackers and I'm looking at alternatives for another platform.
I would be awesome if you could point me in the direction of a good platform.
Visit my page: quest bars
I'm pretty pleased to uncover this website. I wanted to thank you for ones time for this particularly fantastic read!!
ReplyDeleteI definitely liked every part of it and i also have you book-marked to see new stuff in your blog.
Visit my weblog :: quest protein bar sample
It's perfect time to make some plans for the future and it's time to be happy.
ReplyDeleteI have read this post and if I could I desire to suggest you few interesting things or advice.
Perhaps you could write next articles referring to this
article. I want to read even more things about it!
Here is my blog :: office 2013
Hmm is anyone else experiencing problems with the images
ReplyDeleteon this blog loading? I'm trying to figure out if its a problem on my end or if it's the blog.
Any feedback would be greatly appreciated.
My site - GTA 5 PC Beta
This paragraph is actually a fastidious one it helps new net visitors, who are wishing for
ReplyDeleteblogging.
Also visit my blog Office 2013 Activator
Hello! I know this is kinda off topic but I was wondering if you knew where I
ReplyDeletecould find a captcha plugin for my comment form? I'm using
the same blog platform as yours and I'm having problems
finding one? Thanks a lot!
my webpage: GTA V Beta
hey there and thank you for your information – I've definitely
ReplyDeletepicked up something new from right here. I did however expertise some technical points using this site, as I experienced
to reload the site a lot of times previous to I could get it to load properly.
I had been wondering if your web host is OK? Not that I'm complaining, but sluggish loading instances times will often affect
your placement in google and can damage your high-quality score if advertising
and marketing with Adwords. Well I am adding this RSS to
my e-mail and could look out for a lot more of your respective fascinating content.
Ensure that you update this again very soon. Quest Bars blogesaurus
It is appropriate time to make some plans for the future and it's
ReplyDeletetime to be happy. I've read this post and if I
could I wish to suggest you some interesting things or advice.
Maybe you could write next articles referring to this article.
I wish to read more things about it!
Look at my weblog: Diet Plans for Women to Lose Weight