CertUtil is a preinstalled Windows utility that can be used to generate hash checksums:
CertUtil -hashfile pathToFileToCheck [HashAlgorithm]
HashAlgorithm : 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
To get an output similar to * Nix systems, you can add PS magic:
$(CertUtil -hashfile C:\TEMP\MyDataFile.img MD5)[1] -replace " ",""
Laisvis Lingvevicius Mar 08 '15 at 4:09 2015-03-08 04:09
source share