What is the best way to calculate the checksum for a file that is on my machine?

I am on a Windows computer and I want to run the checksum in the MySQL distribution that I just received. It seems that there are products to download, an unsupported Microsoft tool, and possibly other options. I am wondering if there is consensus on the best tool to use. This can be a very simple question, I had never run a checksum procedure before.

+58
windows checksum
Jan 26 '09 at 2:48
source share
19 answers

Any MD5 will create a good checksum to verify the file. Any of the files listed at the bottom of this page will work fine. http://en.wikipedia.org/wiki/Md5sum

+10
Jan 26 '09 at 2:51
source share

CertUtil is a preinstalled Windows utility that can be used to generate hash checksums:

CertUtil -hashfile pathToFileToCheck [HashAlgorithm] 

HashAlgorithm : MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

So, for example, the following generates an MD5 checksum for the file C:\TEMP\MyDataFile.img :

 CertUtil -hashfile C:\TEMP\MyDataFile.img MD5 

To get an output similar to * Nix systems, you can add PS magic:

 $(CertUtil -hashfile C:\TEMP\MyDataFile.img MD5)[1] -replace " ","" 
+178
Mar 08 '15 at 4:09
source share

I personally use Cygwin , which imposes on me all the useful Linux utilities --- there md5sum and all the cryptographic digests supported by OpenSSL . In addition, you can also use the Windows OpenSSL distribution (the "light" version is only a 1 MB installer).

+18
Jan 26 '09 at 2:51
source share

On Windows: you can use the FCIV utility: http://support.microsoft.com/kb/841290

On Unix / Linux: you can use md5sum: http://linux.about.com/library/cmd/blcmdl1_md5sum.htm

+10
Dec 04
source share

At MySQL.com, MD5 is listed next to each file that you can download. For example, MySQL "Windows Essentials" 5.1 is 528c89c37b3a6f0bd34480000a56c372 .

You can download md5 (md5.exe), a command line tool that will calculate the MD5 of any file that you have locally. MD5 is like any other cryptographic hash function, which means that a given byte array will always produce the same hash. This means that if your downloaded MySQL zip file (or something else) has the same MD5 as on your site, you have the same file.

+5
Jan 26 '09 at 2:55
source share

Checksum bookmarks: http://code.kliu.org/hashcheck/

It worked great for me in the windows for a while. This makes it easy to copy and paste checksums. It has a field for entering / pasting checksums from web pages and displaying matches or non-matches.

+5
Feb 21 '14 at 16:47
source share

When I was working with Windows, I found a handy third-party tool HashTab. It shows the MD5, SHA-1 checksums on one of the file properties tabs. http://implbits.com/products/hashtab/

+3
Dec 20 '13 at 8:05
source share

Download the fciv.exe file directly from http://www.microsoft.com/en-us/download/confirmation.aspx?id=11533

 shell> fciv.exe [yourfile] 

will give you md5 by default.

You can read the help file fciv.exe -h

+2
Aug 04 '14 at 22:21
source share

7-Zip can be used to generate hashes for files, file folders, and file folder trees. 7-Zip is a small footprint and a very useful compression utility. http://7-zip.org/

+2
Aug 08 '16 at 2:02
source share

To calculate md5 of all files in the current directory in Windows 7

 for %i in (*) DO CertUtil -hashfile %i MD5 
+2
Dec 28 '16 at 13:35
source share

To add another option for Windows users, you can use the Get-FileHash PowerShell cmdlet ( https://technet.microsoft.com/en-us/library/dn520872.aspx ).

Example usage: Get-FileHash MyImage.iso -Algorithm MD5

If all you need is just a hash code: (Get-FileHash MyImage.iso -Algorithm MD5).Hash

+1
Jul 06 '16 at 0:30
source share
+1
Dec 02 '16 at 22:02
source share

Please note that the solutions above will not tell you if your installation is installed correctly only if your install.exe file is correct (you can trust it to make the correct installation.)

You will need the MD5 amount for each file / folder to check if the installed code was running after the installation was completed.

WinMerg is useful to compare two installations (possibly on two different machines) to see if it has been changed or why it is damaged.

0
Jan 26 '09 at 18:28
source share

certutil is probably the best approach, but there is a chance to hit Windows XP / 2003 without the certutil command. You can use the makecab command, which has its own hash algorithm - here is fileinf.bat , which will display information about the file, including the checksum.

0
Jun 08 '15 at 19:26
source share

Hashing is a standalone application that runs the MD5, SHA-1, and SHA-2 families. Built on OpenSSL.

0
Oct 28 '15 at 20:05
source share

I like to use HashMyFiles for windows.

0
Apr 15 '16 at 13:37
source share

QuickHash is an open source tool that supports MD5, SHA1, SHA256, SHA512 and is available for Linux, Windows and Apple Mac .

https://sourceforge.net/projects/quickhash/

0
Dec 02 '16 at 0:29
source share

In HPUX (hp UNIX) Please install the md5sum package on your UNIX computer, for example, if there is a file named a.txt

shell> md5sum a.txt

0
Jun 24 '17 at 3:52
source share

Just use win32 Checksum api. MD5 is native in Win32.

-four
Jan 26 '09 at 11:44
source share



All Articles