Tuesday, April 23, 2019

Calculate Hash/Checksums like SHA in Windows Natively [Random]


Does Windows 7 (and above) have a native utility to calculate checksums and hases? Yes it does. I download some APK from APKMirror.com and want to calculate the SHA1/256 of the files. I also don't want to get yet another utility to do this.
   
The Windows 7 utility is certutil. I find the information at https://superuser.com/questions/245775/is-there-a-built-in-checksum-utility-on-windows-7/898377#898377 .

To use it, type:
certUtil -hashfile pathToFileToCheck [HashAlgorithm]
 For example:
certutil -hashfile file.apk SHA1
The utility can calculate MD2, MD4, MD5, SHA1, SHA256, SHA384, and SHA512.