windows计算文件hash命令

certutil -hashfile yourfilename MD5

certutil -hashfile yourfilename SHA1

certutil -hashfile yourfilename SHA256

D:>certutil -hashfile 1.txt SHA1
SHA1 的 1.txt 哈希:
7e240de74fb1ed08fa08d38063f6a6a91462a815
CertUtil: -hashfile 命令成功完成。

D:>certutil -hashfile 1.txt md5
MD5 的 1.txt 哈希:
47bce5c74f589f4867dbd57e9ca9f808
CertUtil: -hashfile 命令成功完成。

原文地址:https://www.cnblogs.com/beilong/p/14699483.html