win7 win10 自带 md5 sha1 校验工具,了解一下

2020-02-09 14:47:27 +08:00
 how2ex

cmd 里面的 certutil

Power Shell 里面的 Get-FileHash

了解一下

用法: CertUtil [选项] -hashfile InFile [HashAlgorithm]

certutil -hashfile D:\1.txt

certutil -hashfile D:\1.txt md5

Get-FileHash D:\1.txt

Get-FileHash D:\1.txt -Algorithm md5

3454 次点击
所在节点    程序员
4 条回复
z775781
2020-02-09 15:02:46 +08:00
查看了一下帮助,发现 certutil 这个工具还挺强大的,
-decodehex -- 解码十六进制编码的文件
-decode -- 解码 Base64 编码的文件
-encode -- 将文件编码为 Base64
ThirdFlame
2020-02-09 15:04:14 +08:00
certutil 最大的作用是 当 wget/CURL 用。
geelaw
2020-02-09 15:09:08 +08:00
那么如何让 PowerShell 默认不要截断更长的 hash (如 SHA256、SHA384、SHA512 )的显示呢?

答案是修改默认显示格式 https://geelaw.blog/entries/ps-get-filehash-truncated/
whywhywhy
2020-02-10 17:30:21 +08:00
@ThirdFlame 搜了一下,还真有木马利用这个

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/643212

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX