Windows 和 linux 下使用系统自带的工具计算文件的校验值

Windows

1
certutil -hashfile [file] [hash-function]

支持的算法:MD2/MD4/MD5/SHA1/SHA256/SHA384/SHA512

Linux

1
2
3
md5sum /works/Hello.txt 
sha1sum /works/Hello.txt
sha256sum /works/Hello.txt

参考资料

 上一篇

Chrome