Win10右键菜单添加哈希校验算法,校验文件哈希值

来源:攒机帮 2022-06-18 13:26 阅读:143
哈希校验是为了保证文件的正确性,防止一些人盗用程序,加些木马或者篡改版权,设计的一套验证系统。一般情况下,需要借助第三方的应用小工具来校验。这篇文章是本站给大家带来的校验文件哈希值方法教程
 
方法/步骤:
 
1、右键点击桌面空白处,在打开的菜单项中,选择新建文本文档,并输入以下代码:
 
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\*\shell\文件哈希校验]
 
"SubCommands"="MACTripleDES;MD5;RIPEMD160;SHA1;SHA256;SHA384;SHA512"
 
"MUIVerb"="文件哈希校验"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\MACTripleDES]
 
@="MACTripleDES"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\MACTripleDES\command]
 
@="PowerShell Get-FileHash -Algorithm MACTripleDES \\\"%1\\\" | format-list;“按任意键退出...”;[Console]::Readkey() | Out-Null;exit"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\MD5]
 
@="MD5"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\MD5\command]
 
@="PowerShell Get-FileHash -Algorithm MD5 \\\"%1\\\" | format-list;“按任意键退出...”;[Console]::Readkey() | Out-Null;exit"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\RIPEMD160]
 
@="RIPEMD160"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\RIPEMD160\command]
 
@="PowerShell Get-FileHash -Algorithm RIPEMD160 \\\"%1\\\" | format-list;“按任意键退出...”;[Console]::Readkey() | Out-Null;exit"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA1]
 
@="SHA1"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA1\command]
 
@="PowerShell Get-FileHash -Algorithm SHA1 \\\"%1\\\" | format-list;“按任意键退出...”;[Console]::Readkey() | Out-Null;exit"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA256]
 
@="SHA256"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA256\command]
 
@="PowerShell Get-FileHash -Algorithm SHA256 \\\"%1\\\" | format-list;“按任意键退出...”;[Console]::Readkey() | Out-Null;exit"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA384]
 
@="SHA384"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA384\command]
 
@="PowerShell Get-FileHash -Algorithm SHA384 \\\"%1\\\" | format-list;“按任意键退出...”;[Console]::Readkey() | Out-Null;exit"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA512]
 
@="SHA512"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SHA512\command]
 
@="PowerShell Get-FileHash -Algorithm SHA512 \\\"%1\\\" | format-list;“按任意键退出...”;[Console]::Readkey() | Out-Null;exit"
 
win10,右键菜单,哈希值步骤
 
2、点击新建文本文档左上角文件,在打开的下拉项中,选择另存为;
 
win10,右键菜单,哈希值步骤
 
3、另存为窗口中,选择保存位置,文件名后缀要为 .reg(这里我命名为层叠菜单),最后点击保存即可;
 
win10,右键菜单,哈希值步骤
 
4、在文件保存的位置,比如桌面,双击运行这个后缀为 .reg 的文件,在注册表编辑器的提示窗口中,点击是,确定继续即可;
 
win10,右键菜单,哈希值步骤
 
win10,右键菜单,哈希值步骤
 
5、随便右键点击个文件,在打开的菜单项中,即可看到文件哈希校验,已经添加在右键菜单中了;
 
win10,右键菜单,哈希值步骤
 
以上就是Win10右键菜单添加哈希校验算法|校验文件哈希值文章,如果这篇文章的方法能帮到你,那就收藏攒机帮网站,在这里会不定期给大家分享常用装机故障解决方法。