Search notes:
certutil.exe -hashfile
certutil.exe -hashfile
calculates the cryptographic hash of a file. It supports the following algorithms:
- MD2
- MD4
- MD5
- SHA1
- SHA256
- SHA384
- SHA512
By default, it calucluates the SHA1 hash:
C:\> certutil.exe -hashfile xyz.txt
SHA1 hash of .\xyz.txt
90512edc54cbadf7165648753a3306663a73bd56
CertUtil: -hashfile command completed successfully.
In order to calculate a different hash value, the algorithm is specified after their filename:
C:\> certutil.exe -hashfile xyz.txt MD5
MD% hash of .\xyz.txt
700a9a85a8b5275e777b3d62d525fa8f
CertUtil: -hashfile command completed successfully.