有时候我们下载了文件,想要比较下载是否一致,可以使用下面命令来显示MD5或者SHA1,来对比两个文件的MD5值。

我们可以在要效验的文件夹中,按快捷键:ctrl+shift+r 快速打开cmd,也可以在资源管理器地址栏中输入cmd快速进入当前目录的命令行,非常方便。

PLAINTEXT
certutil -hashfile <filename> MD5
certutil -hashfile <filename> SHA1
certutil -hashfile <filename> SHA256
点击展开查看更多

选项

PLAINTEXT
-gmt -- 将时间显示为 GMT
-seconds -- 用秒和毫秒显示时间
-v -- 详细操作
-privatekey -- 显示密码和私钥数据
点击展开查看更多

使用案例

不带参数

PLAINTEXT
CertUtil -hashfile D:\centos7.iso MD5
点击展开查看更多

带参数

PLAINTEXT
CertUtil -v -hashfile D:\centos7.iso MD5
点击展开查看更多

版权声明

作者: JunYan`Blog

链接: https://www.jinjun.top/posts/996d/

许可证: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

评论

开始搜索

输入关键词搜索文章内容

↑↓
ESC
⌘K 快捷键