Cmd:certutil

官方文档:

https://docs.microsoft.com/zh-cn/windows-server/administration/windows-commands/certutil#-hashfile

命令格式:

certutil -hashfile [path and filename] [md5|sha1|sha256|sha384|sha512]

支持 md5、sha1、sha256、sha384、sha512 算法,单次运行。

命令示例:

certutil -hashfile "D:\DesktopNow\hashmyfiles-x64.zip" sha256

实例截图:

Powershell:Get-FileHash

官方文档:

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.utility/get-filehash

命令格式:

Get-FileHash [path and filename] -Algorithm [md5|sha1|sha256|sha384|sha512] | Format-List

-Algorithm:支持 md5、sha1、sha256、sha384、sha512 算法;
Format-List:按行式列表格式展示,否则按列式列表展示,当使用 sha512 算法展示时不加该 str 导致展示不全;

get-filehash D:\DesktopNow\hashmyfiles-x64.zip -Algorithm SHA256 | Format-List

实例截图:


何星星原创文章仅用于个人学习,当前页面暂不支持复制操作,了解详情或文章转载请 点此 继续!

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注