PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Generate checksums from file

Open d1n13l opened this issue 5 years ago • 27 comments

Without a additional tool you can´t fastly verfiy files with a checksum. You can only use the cmd:

eg. CMD: certutil -hashfile SHA256

Possible algorithm: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

It would be great to have these settings in a new tab "Checksum" by right clicking on a file, where all checksums listed (which can be calculated by certutil) .

There should be a field where you can copy in an existing checksum and compare it with the calculated ones. If it matches, the matching hash could be marked.

d1n13l avatar May 09 '19 14:05 d1n13l

I'm using http://implbits.com/products/hashtab/.

glen-84 avatar May 09 '19 14:05 glen-84

Check also this https://www.binaryfortress.com/HashTools/

aster94 avatar May 11 '19 19:05 aster94

Wasn't this one of the options in Send to X? If not, that seems like a very good place for it to live.

belg4mit avatar May 12 '19 00:05 belg4mit

Powershell has this, I want this as well. awesome idea!

crutkas avatar Dec 18 '19 17:12 crutkas

@belg4mit good idea!

crutkas avatar Jan 28 '20 23:01 crutkas

Feels like a good addition for #641 as a larger enhancement ... powermenu

crutkas avatar Feb 11 '20 21:02 crutkas

it would be great to add this to the file property tab too.

matthewmazzoleni avatar Apr 13 '20 23:04 matthewmazzoleni

An interesting option, which I currently use, is Hashcheck. It adds an item in the context menu and a tab on the Property window. It is also capable of calculating hashes for folders, recursively. Supports all the suggested algorithms and is BSD 3-Clause licensed.

miguelsantos avatar Apr 14 '20 21:04 miguelsantos

I was about to open this issue, but want to point out that it will duplicate this functionality for anyone with 7-zip installed so it'd be nice to disable the feature or have PT replace basic 7-zip functionality.

example of shell extension for hashing 7-zip shell extension for folder context menus in File Explorer includes the hashing suite

soyfrien avatar Nov 08 '20 04:11 soyfrien

this can be easily added to your context menu via reg hacks.. checkout :

How to Add Hash to Context Menu of Files in Windows 8 and Windows 10

davior avatar May 09 '21 09:05 davior

this can be easily added to your context menu via reg hacks.. checkout :

How to Add Hash to Context Menu of Files in Windows 8 and Windows 10

You can create a utility from it, when you want

Aaron-Junker avatar May 09 '21 11:05 Aaron-Junker

Sure wish these hash values could be displayed in the Edge Browser's download file list. You could immediately verify the app you have just downloaded matches the website that you got it from, without skipping out to file explorer. But I guess PowerTools do not bind with browsers. Still - thought I would mention it anyway!

merlinbeedell avatar May 12 '21 11:05 merlinbeedell

this can be easily added to your context menu via reg hacks.. checkout : How to Add Hash to Context Menu of Files in Windows 8 and Windows 10

You can create a utility from it, when you want

Did anyone read this? Never mind, it should wait until the requisite PowerShell 7 is always available where ever PowerToys is installed.

See official documentation describing what's soon available: https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Get-FileHash?view=powershell-7.1&viewFallbackFrom=powershell-6

soyfrien avatar Jun 09 '21 18:06 soyfrien

Suddenly I thought of this feature and planned to open a new one. Glad to see someone already proposed this even though it is years ago.

Limyx826 avatar Feb 06 '22 14:02 Limyx826

Just to add here, as most solutions here are freeware or unmaintained. The one that is open source and actively maintained right now is @namazso's OpenHashTab.

rollingmoai avatar Apr 01 '22 01:04 rollingmoai

This feature is definitively needed for every power users ! It's a shame it has never built-in directly in Microsoft Windows systems.

Hopefully it will be implemented in standard in PowerToys one day and take the best from gurnec/HashCheck, HashTab and namazso/OpenHashTab which all have great functionalities.

zotabee avatar Sep 25 '22 08:09 zotabee

Generating the checksum is a good idea, but what is the purpose ? The checksum must be useful for something after it was created.

Many years ago, i worked on a tools generating hash for files. There were two purposes for the hashes :

  • check file integrity
  • quickly find potential duplicated files (same size + same hash)

tbayart avatar Nov 30 '22 11:11 tbayart

Finding collisions in MD5 and SHA-1 hashes may be too trivial for file integrity (thinking as seen alongside downloads).

soyfrien avatar Dec 01 '22 07:12 soyfrien

What is the purpose? When downloading many things from the internet, they provide a hash for the file being downloaded saying "please verify the hash of your download matches to ensure it has not been tampered with". But if you have to go digging to find a hash utility in Windows - then you just hope that your download is correct.

merlinbeedell avatar Dec 01 '22 09:12 merlinbeedell

To make sure an image or executable hasn't been tampered with is one example. A more contemporary situation might be giving a program access through a software firewall, this would be an easy way for it to detect a new binary.

I'm not sure what the point would be, probably different for everyone. Just seems like a common part of a power user's toolkit.

But I would want it to be optional to not clutter the context menu.

soyfrien avatar Dec 03 '22 08:12 soyfrien

It will be great combine this with File Locksmith. These are not related options, but it make sense to me combine this type options in a ui for Advance File Options/Properties.

FranAFV avatar Feb 14 '23 11:02 FranAFV

Have a look at Thio Joe's video: https://www.youtube.com/watch?v=aNDw1QMV-lM

Jay-o-Way avatar Apr 15 '23 07:04 Jay-o-Way

The Files app has this built in: image

Jay-o-Way avatar Jun 29 '23 10:06 Jay-o-Way

I would also look forward to have this feature added. It really makes identifying duplicate files much easier. If i can help, tell me, i have a lot of Dev Experience. Can make a PR if needed

EliasKotlyar avatar Sep 17 '23 20:09 EliasKotlyar

A nice concept from @astropingo can be found here https://github.com/microsoft/PowerToys/issues/30317

davidegiacometti avatar Dec 09 '23 12:12 davidegiacometti

I would also really look forward to this. I use OpenHashTab and while it is nice I think a PowerToy would make hashing files more accessible for more people.

Hitmanforrent avatar Feb 07 '24 18:02 Hitmanforrent

I suddenly realised that this issue only meant to generate hash but not verify with said hash.

Limyx826 avatar Feb 07 '24 18:02 Limyx826

1+ for this feature, I'm currently using https://github.com/idrassi/HashCheck.

I wish for fast and modern checksum algorithms like:

I see little reason to implement deprecated / "not considered collision secure" algorithms, like CRC, MD2, MD4, MD5 and SHA-1. But include:

o-l-a-v avatar Apr 03 '24 11:04 o-l-a-v

I'm also using HashCheck. That's why I support the inclusion of hash generation/checking tool in PowerToys as ways of checking for file legitimacy or integrity.

Limyx826 avatar Apr 03 '24 18:04 Limyx826

To make sure an image or executable hasn't been tampered with is one example. A more contemporary situation might be giving a program access through a software firewall, this would be an easy way for it to detect a new binary.

I'm not sure what the point would be, probably different for everyone. Just seems like a common part of a power user's toolkit.

But I would want it to be optional to not clutter the context menu.

I use it to quickly lookup the hash on VirusTotal instead of uploading the file

richardhttps avatar Jul 19 '24 09:07 richardhttps