Skip to main content


Get File Checksums Using Windows Built-In Tools


Put simply, a checksum (also referred to as a hash value or hash sum) Is a unique string consisting of numbers and letters, that helps check & Identify errors In data. It's also used to determine whether a given file has been tampered with, by comparing the checksum of the original file to that of a file from another source. In this tutorial, I will show you how to generate a number of checksum algorithms natively within Windows.


Before I begin, here's what I'm referring to In terms of verifying the Integrity of a file. I've navigated to the official MySQL website, and next to each download button, there's an MD5 checksum as Illustrated below.


Downloading from the official website Is considered a trusted source, however when doing the same from another website, you never know for sure whether the file Is what It claims to be. To be absolutely certain, you'd generate (In this case) an MD5 checksum of the file you've downloaded, and compare the result with that from the official website. If they match, all Is well. If not, then the file has been altered In some way.

There are a few checksums used- the commonalities being MD5, SHA1 and SHA256. I will be demonstrating how to generate all these against a particular file, by using a couple of Windows built-In utilities named PowerShell and Certutil. So without further delay, let's rip Into this tutorial.


Step One:
Firstly, I shall use PowerShell. To access It, open the Run menu, enter powershell and hit OK.



Step Two:
PowerShell will now open, so type Get-Filehash but do not hit the Enter key as yet. Drag the file that you wish to check Into PowerShell. For the purpose of this guide, I'm using a file named Charny Screenshot.exe as shown below



Step Three:
You will now see your file, Inclusive of It's directory. Make sure there's a space between the Get-Filehash command and the file path, otherwise this will not work. When you're ready, hit Enter.



Step Four:
By default, PowerShell generates a SHA256 hash. This can be clearly seen as arrowed.



Step Five:
To generate another hash algorithm, simply enter -Algorithm right at the end, and specify the checksum. For Instance, I want to generate an MD5 checksum, so I've entered -Algorithm MD5, and hit Enter. As you can see, the result has been returned.



Step Six:
I've done the exact same with the SHA1 algorithm, as demonstrated below.



Step Seven:
Now let's generate a couple, by using Certutil. This Is actually accessed via the Command Prompt, so open the Run menu, enter cmd and hit OK.



Step Eight:
Now type certutil -hashfile, and drag your file Into the Command Prompt, much the same as you did In Step Two above with PowerShell. Your entry should look similar to mine.



Step Nine:
Upon hitting the Enter key on your keyboard, by default, Certutil generates a SHA1 hash as arrowed below.



Step Ten:
To generate another type of hash algorithm, simply enter It at the end. In my case, I want to generate an MD5 hash algorithm, so I've typed MD5.



Last Step:
After hitting the Enter key, as you can see, the MD5 hash of the file, has been successfully generated.



Final Thoughts:
It doesn't get any easier than this, does It? I could've shown you how to generate a given file hash by typing the entire directory of the file In question, but simply dragging It Into the utility (PowerShell and/or Certutil), serves the exact same purpose.

There are many third-party tools, such as Hash Generator that do the job with ease, but why use an external software when the same result can be achieved natively within Windows? So the next time you download a file from an unknown source, be sure to generate It's hash via any of the above methodologies, and compare the result with the official website (or It's related entity).



Comments

Popular posts from this blog

How To Decode The Windows 10 Product Key

Every Windows 10 operating system that's Installed and activated on the computer, has what's called a Product Key , that Is either pre-Installed by the manufacturer, or added by the end user when formatting their PC. In order to have a fully-functional OS, It must contain a valid Product Key. Whilst there are many tools that can extract It from the operating system, In this tutorial, I will show you how to manually decode the Product Key.

How To Create A Fake File Of Any File Size

Depending on your business environment or Individual requirements, sometimes there Is the need to test files of a given capacity. Such tests can Include Identifying how well your hard disks perform under heavy read/write operations, or to establish whether files can be securely deleted beyond recovery. Whatever the reason may be, In this tutorial, I will show you how to create a fake file of any file size. 

How To Rename Any Power Plan In Windows 10

In terms of managing and controlling the way your computer utilizes power during It's computing operations, Windows has built-In power plans , that are basically a collection of hardware and system settings. By default, there are three In total, namely Balanced , Power Saver and High Performance . Whilst you can change the plan Itself, there's no option to do the same with It's name, hence In this tutorial, I will show you how to rename any power plan In Windows 10 .