Generate file hash string in Windows 10 command line

By | 2020-01-06

Some times you download files from Internet that need to be verified against some hash string.
Windows 10 has a simple command line tool that enables you to generate hash strings for any file: certutil

It’s very simple to use, you only have to change <file> with your file path and <hash alg> with one of the supported Hash algorithms: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

certutil -hashfile

For example:

certutil -hashfile c:\test.data SHA512

Sources:
5 Ways to Generate and Verify MD5 SHA Checksum of Any File in Windows 10