Wednesday 8 May 2013

Check CRC /Hash calculation for files

We can send files to any other person or organization as attachment. Only if one download and opens it, will know if the file is correct or not, that too if it is in human readable format, like pdf, doc, excel etc. What if it is binary file or image, which is to be given to the other person? The other person cannot identify it until it uses it in the application for which it is intended.

One easy way is to do CRC32 check at both the ends. There is one free tool available hashtab which does hash calculation and generates the unique values.

Once this tool is downloaded and installed, for any file, if you right click -> properties -> you can see one extra tab "File hashes" -> It will display the Name and the Hash value unique to the file.

You can copy this information and send to the other party as well. The other person once download the file, he/she can check the properties-> and the hash value, if both sides it matches, means the file is fine,otherwise resend the file.

You can download the hashtab from below link and try it.

http://www.implbits.com/HashTab/HashTabWindows.aspx

Keep learning, Keep sharing !