Sunday, September 4, 2016

Verify files without installing apps in Windows 7/8/10

During the WinXP days, I've been using FCIV, md5summer or other tools just to get a file hash. The hash is useful to verify legit installers, check duplicate files, and verify if your PC is infected by a malware.

I've been accustomed to using sha1sum or md5sum when I've embarked on a journey of using Ubuntu. Now I'm back in using Windows, specifically Win10, I'm in a situation where I need to hash some files.

In my search of built-in alternatives just like in Ubuntu, I've stumbled upon a solution from Stackoverflow where it suggest to use certutil.exe. This is how you use the tool to extract the file's md5 hash:

certutil -hashfile setup.exe md5

This is how you use the tool to extract the sha1:

certutil -hashfile setup.exe sha1

This is their respective output for the same file I've used:


The certutil.exe tool comes handy when you don't want to install app that you won't be using very often. Now back to coding.