The easiest way to verify files integrity on Windows
![]()
Easily check and verify files and apps haven’t been compromised using MD5 and SHA checksum with this simple command-line utility.
Integrity checking files — or checking against a provided hash value is a common and easy way to be certain a file or program has not been tampered with or perhaps damaged during download and transmission.
What is a checksum?
A checksum hash-value for a given file is a cryptographic representation of the file in its exact state, meaning that even small changes such as adding or removing a single character will completely change the checksum value — making it overt if any changes have been made to the file.
How important is a checksum?
Even a small change to a file will make the checksum completely different, as the hash will produce a different output. Here is an example of a very small difference in the file contents results in a completely different checksum value.
Example of how a simple change affects the checksum.
In the image on the left, you can see the checksum value created for the original, unedited file is ‘f0f5758146818bbe37a32e99f9d51187’. In the second image, a small defacement easily missed by many was made to the title, the word ‘Cash’ is added. This is the only change made to the whole file. Despite this, the checksum hash returned is radically different, outputting (the second output in the image on the right) ‘c2b2642679c3fee7c8af7b8d7a979d5d’. With the checksum being completely different, this makes for a quick and easy way to determine if files have been compromised or changed.
How to check this on Windows
There are many tutorials and how-to guides that suggest downloading and running third-party software to perform integrity checks on windows, yet there is a much simpler method: the certutil command.
Using a command built into Windows offers many advantages, namely no need to source software across your network and more so this utility can easily be added to PowerShell scripts for automation of this process.
Using certutil is straight-forward. Simply open Command Prompt or PowerShell and type ‘certutil -hashfile [file_name] [hash-algorithm]’ replacing with the respective filename and the hashing algorithm you will use. If you are downloading software from an external source, it may list a checksum for you to use, in which case it is important to set CertUtil to use the same hashing algorithm. If you are using the tool on files yourself, the choice isn’t so important as long as you are consistent in the algorithm used.
Here is an example of a download page listing a checksum value. I had to click a link first to view the checksum, which is common on download pages. The checksum value here is SHA256.
Running the CertUtil command with ‘sha256’ at the end of the string runs the utility with the same hashing algorithm as the checksum provided on the Ubuntu website. Then compare the two values we can see checksum values are identical so this file's integrity has been proven.
Furthermore, this process can be automated in a script if need be, including the automation of checking the value to prevent the risk of human error when reading and comparing two values.
Как проверить MD5 хеш-сумму файла в Windows

В некоторых ситуациях, может быть необходимо, посчитать MD5 хеш-сумму для файла, который вы скачали на свой компьютер. Например, чтобы быть уверенным в том, что вы скачали именно тот файл, который хотели и злоумышленник его не модифицировал. В этой статье мы рассмотрим 2 разных способа это сделать: через расширение для проводника, а также через командную строку.
Вариант через расширение для проводника
Для проводника Windows существует замечательная программа Hashtab, которая бесплатна для некоммерческого использования. Скачать ее можно с официального сайта. Выбираем бесплатную (Free) версию и жмем на кнопку «Download».

После установки программы, в контекстном меню проводника появится новая вкладка «Хеш-суммы файлов», выбрав которую, программа автоматически посчитает хеш-суммы для выбранного файла в зависимости от того, какие алгоритмы выбраны в ее настройках. 
Вариант через командную строку (без установки программ)
В том случае, если вам не хочется устанавливать какие-либо программы, то можно обойтись встроенными средствами Windows, для этого можно воспользоваться утилитой CertUtil.
Для проверки MD5 хеша, достаточно ввести следующую команду:
C:\Users\Admin\Downloads\HashTab_v6.0.0.34_Setup.exe — это путь к тому файлу, хеш-сумму которого мы хотим посчитать.

Как видно на скриншоте, хеш-сумма нашего файла 62130c3964. полностью идентична той, которую мы получили с помощью первого способа.
Вариант через командную строку (с установкой программы)
В случае, если необходимо посчитать хеш-сумму файла через командную строку, мы можем воспользоваться утилитой от Microsoft, которая годится как раз для таких случаев. Скачиваем ее с официального сайта Microsoft и устанавливаем. Для этого надо будет создать какую-либо папку на жестком диске и указать ее в процессе установки. В нашем примере, программа была установлена в папку C:\Program Files (x86)\FCIV. Для того, чтобы посчитать MD5 хеш-сумму файла, нам необходимо запусить командную строку и в ней набрать следующую команду:

Как видите, MD5 хеш-сумма одинакова как для всех трех способов, которые рассмотрены в данной статье.
Была ли эта статья Вам полезна?
Комментарии к статье (12)
-
- Гость
- 11.02.2023 16:36
Я не могу правильно указать путь к DVD на котором записана копия OS Windows. В статье возможно всё правильно за исключением того, что Hashtab
«приказала долго жить», куплена Турками и альтернативы, по сути нет. То что они предлагают как альтернативу . (вообщем можете сами посмотреть), я попробовал все, вывод: не годится!- Ответить
- Гость
- 14.12.2021 14:54
Редко востребованная функция. При необходимости ей воспользоваться сначала придется вспомнить, где я это видел.
- Ответить
- 228vasyaAUE
- 05.12.2021 18:07
- Ответить
- Гость
- 23.06.2021 23:20
certutil -hashfile даёт не MD5 а SHA1.
- Ответить
-
- Recluse
- 24.06.2021 08:12
Если просто выполнить certutil -hashfile, то да, результат будет в SHA1.
Если добавить ко всему этому еще параметр MD5, как и написано в статье, то результат будет в MD5.- Ответить
- михаил
- 28.04.2021 19:33
спасибо за наводку. Это работает. certutil -hashfile MyM-win.zip SHA256
- Ответить
- вася
- 26.12.2020 21:38
[мат удален] не работают команды.
- Ответить
-
- Recluse
- 28.12.2020 20:31
Не обломался, взял и попробовал использовать команду certutil — работает. Но поскольку кроме нецензурной брани никакой информации предоставлено не было (операционная система, результаты выполнения команды и т. д.) то могу посоветовать искать проблему самостоятельно.
- Ответить
- Евгений
- 31.07.2020 18:19
Доброе время суток, подскажите пожалуйста, где и какими способами можно дешефрировать число из 20-30 цифр. Вот пример:
ba18c0a0c200eb9c4cf3cdb27806eb61число зашивровано по MD5
- Ответить
-
- Recluse
- 02.08.2020 13:11
В интернете достаточно материалов на эту тематику (как пример), к данной статье это не имеет отношения.
- Ответить
- AJIekceu4
- 02.08.2020 14:02
Этот вопрос сильно не по теме статьи 😉
Основной плюс хеш-функций, это то, что они работают только в одну сторону.
1) Можно поискать в интернете сервисы с радужными таблицами (rainbow tables) по алгоритму md5 и попытать счастья там, вводя этот хеш. Но очень вряд ли что кто-нибудь делал вычисления для таких огромных чисел.
2) Можно установить hashcat, который позволяет в том числе искать хеши с помощью CPU и GPU для различных алгоритмов, включая MD5 и методом bruteforce атаки по маске просто пытаться подобрать такое число, которое даст такой хеш. Но этот способ вряд ли подойдет для таких огромных чисел. Для примера на RTX 2080 Ti на перебор всех возможных хешей для числа из 18 цифр требуется чуть меньше 2-х лет.How to Do a MD5 Checksum on Windows? (No App Required)
MD5 is a hashing function that is often used to check if a file transfer is complete and the file has not been corrupted during it. On each system there are different tools you can use to a file checksum, and in this article we’ll see how to do this on Windows.
On Windows 10, a MD5 checksum can be done natively with PowerShell, by using the Get-FileHash cmdlet. Open the powershell app and use the command syntax: “Get-FileHash <filename> -Algorithm MD5” to get the corresponding checksum hash.
No worries, if you are new to this, I’ll explain everything in this article.
Table of Contents
How to Create a MD5 Checksum on Windows
The easiest way to generate a MD5 checksum for a file on Windows is to use PowerShell. It’s available by default and can be used without installing anything else. The command to use is “Get-FileHash”.
Even if MD5 is no longer safe to use for encryption, it’s still an excellent solution to quickly check if a file transfer has been successful or not. The idea is to get the MD5 fingerprint of the file before and after the transfer. If it’s the same value, the file transfer is OK, if not the file is corrupted.
The Get-FileHash cmdlet display the hash value of a file. By default, it uses the SHA256 algorithm, but we can add an extra parameter to use MD5.
Complete Security Course
Become a cyber security specialist.
Network Security, WiFi Security, WiFi Hackers, Firewalls, Wireshark, Secure Networking. + Password Managers.- Open the PowerShell app
- Type your command, for example:
Get-FileHash .\debian-10.9.0-arm64-xfce-CD-1.iso -Algorithm MD5 - The corresponding MD5 hash will be displayed

- Check if it’s the same that you should get.
In general, there is a MD5 file available on the website, or the MD5 hash is indicated on the download page.
With my Debian example, here is what I get on the website:
It’s the same MD5 hash as the one I get with the PowerShell command, so I can consider the download is complete and conform.
Alternatives to PowerShell to Create a Checksum on Windows
Even if PowerShell is convenient because it’s available by default, that not the easiest way to check a MD5 checksum on Windows. You have to use command lines and remember them, which is not the common way to do things on Windows
Other apps are available to do the same thing in a simpler way. I highly recommend reading this article to find the best apps I recommend if you are on Windows (there are even a few for Android users.)
How to View the MD5 File on Windows
If the downloaded file comes with a MD5 file, you can open it on Windows with any text editor. Double-click on the file and choose an app in the suggested list (Notepad, for example). Inside, you’ll find the MD5 hash and the file name.
Now, you can use Get-FileHash in Powershell or any other tool of your choice to generate the checksum corresponding to the download file (an ISO file for example), and compare it to the MD5 indicated in the MD5 file.
If the two MD5 are the same, you can consider your download is complete and the file is safe to use. If not, it’s better to download it again to avoid any problem while using this file.
Hi, my name is Patrick, I’m a web developer and network administrator. I have always been interested in security, and I created this website to share my findings with you.
How to Verify MD5 or SHA256 Checksum in Windows 11
This guide shows you how to check the MD5 or SHA256 checksum (or other hashing algorithms) of any file in Windows 11 or Windows 10 using only Command Prompt or Windows Terminal.
What is checksum and why do we use it?
A checksum is a unique set of numbers and letters generated for a file using a hash algorithm such as MD5 or SHA-256 (the most commonly used checksum algorithms) to verify if the file has not been modified during transmission (e.g. downloading the file).
Most software vendors display the checksum of their downloadable files (such as installers and zip files) so that users can check the integrity of the file using the checksum after download. This is to ensure that the file has not been altered in any way during transfer.

After downloading a file, you can generate the checksum of the downloaded file and see if it matches the checksum provided by the software vendor. If it matches, this means that there were no errors or alternations during the transfer and that the files were identical before and after the transfer.
How to check MD5 or SHA256 checksum of a file in Windows 11
To verify the MD5 checksum or SHA256 checksum of a file in Windows 11, follow the steps below.
- First, right-click the file you want to verify the checksum for and select “Copy as path“. You will need this path later.

- Next, open Command Prompt (search for “CMD” via Start) or Windows Terminal (right-click Start and select Windows Terminal).

- To check the MD5 checksum of a file, type the following command in the Command Prompt or Windows Terminal window.
Replace filepath with the actual path to the file that you want to check the checksum for. You can highlight the filepath and press Ctrl + V to paste the path you’ve copied in step 1. For example:

To check the SHA256 checksum of the file, replace MD5 with SHA256. For example:
Verify different checksum algorithms
To check the checksum of a file using a different hashing algorithm, replace the MD5 in the command line with the checksum algorithm that you want to use. The following are the hashing functions that the certutil command-line tool supports.
- MD2
- MD4
- MD5
- SHA1
- SHA256
- SHA384
- SHA512
What to do if the checksums do not match?
If the checksum of the file you generated on your computer do not match the one provided by the software vendor, it indicates that the file is corrupted, incomplete or has been altered.
In most circumstances, if the checksums do not match, you should not open the file because the data may have been tampered with and could pose a security risk if you run the file.