Windows 10 內建 md5 / sha256 工具

下載檔案後會透過計算檔案 hash 值來判別檔案的完整性, 在 linux 幾乎都有內建 md5sum sha256sum 這些 hash 計算的命令, 但在 Windows 7 之前都需要額外下載安裝 WinMD5 才能計算檔案的 md5 hash 值, 現在 Windows 10 已經有內建計算檔案 hash 值工具 certutil 使用方式如下:

certutil -hashfile <filename> <hash-mode>

例如計算 C:\Users\jonathan\Downloads\demo1.2.ova 這個檔案的 md5 hash 值

C:\Users\jonathan>certutil -hashfile "Downloads\demo1.2.ova" md5
MD5 的 Downloads\demo1.2.ova 雜湊:
5cd3c5aa3d417f048a4cb29ee8f23d2d
CertUtil: -hashfile 命令成功完成。
  • tech/win10_hash.txt
  • 上一次變更: 2021/03/24 16:42
  • jonathan