What is the best way to calculate a checksum for a file that is on my machine?

The CertUtil is a pre-installed Windows utility, that can be used to generate hash checksums:

CertUtil -hashfile pathToFileToCheck [HashAlgorithm]

HashAlgorithm choices: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

So for example, the following generates an MD5 checksum for the file C:\TEMP\MyDataFile.img:

CertUtil -hashfile C:\TEMP\MyDataFile.img MD5

or

HashCheck which integrates itself as a property page for files and includes a context menu to compare against hash check files (SFV).

It is free, and the source is available.

posted @ 2015-12-14 16:00  andy_0212  阅读(96)  评论(0编辑  收藏  举报