Created
February 5, 2023 07:12
-
-
Save toriato/a4354953c7f3c1713150cc5e9bf8d5df to your computer and use it in GitHub Desktop.
Hash context for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Created by: Shawn Brink | |
; Created on: March 5th 2017 | |
; Modified by: Sangha Lee (@toriato) | |
; Tutorial: https://www.tenforums.com/tutorials/78681-file-hash-context-menu-add-windows-8-windows-10-a.html | |
[HKEY_CLASSES_ROOT\*\shell\hash] | |
"MUIVerb"="Hash" | |
"SubCommands"="" | |
; SHA1 | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu] | |
"MUIVerb"="SHA1" | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu\command] | |
@="powershell Get-FileHash -LiteralPath '%1' -Algorithm SHA1 | ForEach-Object { Set-Clipboard $_.Hash }" | |
; SHA256 | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu] | |
"MUIVerb"="SHA256" | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu\command] | |
@="powershell Get-FileHash -LiteralPath '%1' -Algorithm SHA256 | ForEach-Object { Set-Clipboard $_.Hash }" | |
; SHA384 | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu] | |
"MUIVerb"="SHA384" | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu\command] | |
@="powershell Get-FileHash -LiteralPath '%1' -Algorithm SHA384 | ForEach-Object { Set-Clipboard $_.Hash }" | |
; SHA512 | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu] | |
"MUIVerb"="SHA512" | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu\command] | |
@="powershell Get-FileHash -LiteralPath '%1' -Algorithm SHA512 | ForEach-Object { Set-Clipboard $_.Hash }" | |
; MD5 | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu] | |
"MUIVerb"="MD5" | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu\command] | |
@="powershell Get-FileHash -LiteralPath '%1' -Algorithm MD5 | ForEach-Object { Set-Clipboard $_.Hash }" | |
; Show all | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu] | |
"CommandFlags"=dword:00000020 | |
"MUIVerb"="Show all" | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu\command] | |
@="powershell $v = @(); foreach ($i in @( 'SHA1', 'SHA256', 'SHA384', 'SHA512', 'MD5' )) { $v += \\\"${i}: $((Get-FileHash -LiteralPath '%1' -Algorithm $i).Hash)\\\" }; Set-Clipboard $v" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Created by: Shawn Brink | |
; Created on: March 5th 2017 | |
; Tutorial: https://www.tenforums.com/tutorials/78681-file-hash-context-menu-add-windows-8-windows-10-a.html | |
[-HKEY_CLASSES_ROOT\*\shell\hash] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment