2.18 Windows自带命令计算文件哈希 https://scz.617.cn/windows/202204091358.txt Q: 我一般有"GNU utilities for Win32"这类工具,其中包含md5sum、sha1sum。 md5sum some.exe sha1sum some.exe 若装有WSL1,还可以 wsl md5sum some.exe wsl sha1sum some.exe 若装有7-Zip,右键菜单里有"CRC SHA",至少可以算SHA1、SHA256。但这些都不是系 统自带的,有自带工具计算文件哈希吗? A: certutil支持 MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512 缺省计算SHA1 certutil -hashfile some.exe certutil -hashfile some.exe md5 certutil -hashfile some.exe sha1