Windows下使用CMD查看文件哈希值

KuaiKan 2024-4-25 211

Windows下无需任何软件。

方法:Win键+R键输入CMD调出命令行输入:

查看MD5值

certutil -hashfile 文件名  MD5

查看 SHA1

certutil -hashfile 文件名  SHA1

查看SHA256

certutil -hashfile 文件名  SHA256

certutil  {空格} -hashfile

注册表添加,Windows自带,是我现在用的,常用的md5、sha1、sha256都有了,其他的可以自行添加。

Windows Registry Editor Version 5.00
  
[HKEY_CLASSES_ROOT\*\shell\GetHash]
"MUIVerb"="获取哈希值"
"Icon"="imageres.dll,-5372"
  
[HKEY_CLASSES_ROOT\*\shell\GetHash\Command]
@="mshta vbscript:createobject(\"shell.application\").shellexecute(\"powershell.exe\",\"-noexit write-host '\"\"%1\"\"';$args = 'md5', 'sha1', 'sha256'; foreach($arg in $args){get-filehash '\"\"%1\"\"' -algorithm $arg | select-object algorithm, hash | format-table -wrap}\",\"\",\"open\",3)(close)"

1

签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回