Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a built-in checksum/hash utility on Windows 7?

share|improve this question
    
Not my area, but Powershell, the build in scripting language, can probably do it. –  Phoshi Feb 14 '11 at 19:03
9  
Is this one of those goofy "I'm not allowed to install any 3rd party software" requirements? If so, try googling for "PowerShell SHA1 hash" and you should get some scripts/cmdlets that will run on the built-in PowerShell using MS's Crypto APIs. –  afrazier Feb 14 '11 at 19:14
    
There is GetFile-Hash. You need PS 4.0 or community extensions stackoverflow.com/questions/10521061/… –  rofrol Nov 26 at 11:02

9 Answers 9

up vote 27 down vote accepted

Unfortunately, no.

But there's a freeware app called HashTab that integrates neatly with Windows Explorer by registering a... well, a tab in the properties dialog of files. It's pretty sweet.

enter image description here

share|improve this answer
1  
Thanks. Unfortunately being built-in was an essential requirement for me. –  user64996 Feb 14 '11 at 18:56
26  
I prefer HashCheck over HashTab, primarily because it can handle multiple mixed file/folder selections and it can create/verify SFV/MD5/SHA1 files. My writeup over at the Ars Forums goes into more detail. –  afrazier Feb 14 '11 at 21:51
9  
Be aware HashTab is only free for private use! HashCheck is open source and complete free (BSD license) –  keiki Oct 22 '12 at 14:08
1  
Also HashCheck is 85kB, awesome. –  v.oddou Jul 14 at 7:14
    
HashTab and HashCheck are great tools. Too bad that neither supports SHA-256. –  JustinY Oct 29 at 18:53

There is a utility from Microsoft, the Microsoft File Checksum Integrity Verifier

The Microsoft File Checksum Integrity Verifier tool is an unsupported command line utility that computes MD5 or SHA1 cryptographic hashes for files.

It doesn't show Windows 7 in system requirements but I've just used it in Windows 8 and it worked.

share|improve this answer
    
Why are we linking to a unsupported command line utility. This doesn't even intergrate into the shell which I am sure the author wanted. –  Ramhound Sep 5 '12 at 12:36
19  
That utility was useful for me. I downloaded an iso image from msdn and needed to cheksum it. I didn't want any third party tools. I didn't need the shell integration and the author didn't ask for it. It's from a trusted source Microsoft and while unsupported it still works. I posted a link here because other people like me may find it useful. –  creator Sep 6 '12 at 4:25
14  
I'm with @creator. It may not be supported software, but at least Microsoft is the author. Checksum programs are potentially really important to maintaining security; I'd rather not get mine from some random third-party. –  ellisbben Sep 18 '12 at 18:00

I found this PowerShell script:

param([switch]$csv, [switch]$recurse)

[Reflection.Assembly]::LoadWithPartialName("System.Security") | out-null
$sha1 = new-Object System.Security.Cryptography.SHA1Managed
$pathLength = (get-location).Path.Length + 1

$args | %{
    if ($recurse) {
        $files = get-childitem -recurse -include $_
    }
    else {
        $files = get-childitem -include $_
    }

    if ($files.Count -gt 0) {
        $files | %{
            $filename = $_.FullName
            $filenameDisplay = $filename.Substring($pathLength)

            if ($csv) {
                write-host -NoNewLine ($filenameDisplay + ",")
            } else {
                write-host $filenameDisplay
            }

            $file = [System.IO.File]::Open($filename, "open", "read")
            $sha1.ComputeHash($file) | %{
                write-host -NoNewLine $_.ToString("x2")
            }
            $file.Dispose()

            write-host
            if ($csv -eq $false) {
                write-host
            }
        }
    }
}

Source: Calculating SHA1 in PowerShell

It leverages .NET which I assume you have installed

share|improve this answer
5  
Win 7 comes with .NET 3.5 and PowerShell v2, and PowerShell has always been dependent on .NET, so if you've got PS, you've got .NET. :-) –  afrazier Feb 14 '11 at 21:47

Download Microsoft File Checksum Integrity Verifier. Extract the files, then open a Command Prompt, go to the extracted path and then type the following command:

fciv -md5 filepath\filename.extension

For example:

fciv -md5 d:\programs\setup.exe
share|improve this answer
    
This answer and @creator's answer should be combined. They refer to the same tool. –  leif81 Jun 11 at 13:36
    
Except that @creator's answer was posted months before this one. –  dj18 Aug 14 at 15:11

Unfortunately not that I'm aware of but Microsoft's Sysinternals suite includes a nice tool called sigcheck: http://technet.microsoft.com/en-au/sysinternals/bb897441

share|improve this answer

There like 100 3rd part tools out there. I use MD5Hash. For downloads with sfv files, just use Teracopy to verify the hashes.

share|improve this answer

For a solution that works on Windows or just about any other environment, use Python.

  1. install Python -- a Windows installer is provided on https://www.python.org/downloads/

  2. download a tested cksum implementation, e.g. http://pastebin.com/raw.php?i=cKATyGLb -- save the contents of this to say, c:\cksum.py or wherever you find convenient

Then to perform a checksum:

python c:\cksum.py INPUTFILE

Not as fast as a compiled utility, but compatible with Unix cksum and runs anywhere.

share|improve this answer

well i have made a program to calculate some hashes from file Link here i hope it helps you

What this does? it calculates SHA-1 hash, SHA-384 hash, md5 hash aand sha-256 hash, well that's about it :)

share|improve this answer
1  
Welcome to Super User. Could you please say a little bit about your solution rather than just providing a link to it? –  Excellll Sep 8 at 19:13
    
edited my answer –  Aleš Kalan Sep 10 at 12:30

QuickHash supports SHA-256 and SHA-512. I needed SHA-256 support to verify the checksum of whitelisted JavaScript libraries for inclusion in a Firefox addon.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.