微軟官方有提供一個小工具,可以計算檔案的 MD5/SHA1
Microsoft File Checksum Integrity Verifier
連結:https://www.microsoft.com/en-us/download/details.aspx?id=11533
Usage: fciv.exe [Commands]
Options:
-md5 | -sha1 | -both : Specify hashtype, default md5.
-xml db : Specify database format and name.
計算檔案 MD5 和 SHA1 值
./fciv.exe ubuntu-16.04.4-desktop-amd64.iso -both
結果
// // File Checksum Integrity Verifier version 2.05. // MD5 SHA-1 ------------------------------------------------------------------------- b47e23601d56533fb01a941ef1794e57 c9145abdc41011b2fc9b32b9d96175020760e284 ubuntu-16.04.4-desktop-amd64.iso