How to compute the MD5 or SHA-1 cryptographic hash values for a file
This article describes how and why you can use the MD5 or SHA-1 cryptographic hash values to verify which file you installed on your computer.
Original product version: Windows 10 - all editions
Original KB number: 889768
When you apply the hashing algorithm to an arbitrary amount of data, such as a binary file, the result is a hash or a message digest. This hash has a fixed size. MD5 is a hashing algorithm that creates a 128-bit hash value. SHA-1 is a hashing algorithm that creates a 160-bit hash value.
Use FCIV to compute MD5 or SHA-1 cryptographic hash values
You can use the File Checksum Integrity Verifier (FCIV) utility to compute the MD5 or SHA-1 cryptographic hash values of a file. For additional information about the File Checksum Integrity Verifier (FCIV) utility, click the following article number to view the article in the Microsoft Knowledge Base:
To compute the MD5 and the SHA-1 hash values for a file, type the following command at a command line:
FCIV -md5 -sha1 path\filename.ext
For example, to compute the MD5 and SHA-1 hash values for the Shdocvw.dll file in your
%Systemroot%\System32 folder, type the following command:
FCIV -md5 -sha1 c:\windows\system32\shdocvw.dll