Link Search Menu Expand Document

Checking File Hashes

To check the hash of a file, you can use the certutil command as follows:

Open a command prompt or PowerShell window and navigate to the location of the file e.g.


To generate a SHA-1 hash over the file, at the prompt type:

certutil -hashfile

Certutil defaults to SHA-1, but you may also specify explicitly as follows:

certutil -hashfile sha1

To generate a SHA-256 hash over the file , type:

certutil -hashfile sha256


C:\temp\downloads>certutil -hashfile sha256
SHA256 hash of c:\Users\myname\Downloads\
CertUtil: -hashfile command completed successfully.

The output is the hash, e.g. in the example above, the SHA-256 hash over the file is