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

前端 未结 20 2373
夕颜
夕颜 2020-12-22 17:22

I\'m on a Windows machine and I want to run a checksum on the MySQL distribution I just got. It looks like there are products to download, an unsupported Microsoft tool, an

相关标签:
20条回答
  • 2020-12-22 17:39

    I like to use HashMyFiles for windows.

    0 讨论(0)
  • 2020-12-22 17:40

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

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

    If all you're after is just the raw hash then: (Get-FileHash MyImage.iso -Algorithm MD5).Hash

    0 讨论(0)
  • 2020-12-22 17:44

    I personally use Cygwin, which puts the entire smörgåsbord of Linux utilities at my fingertip --- there's md5sum and all the cryptographic digests supported by OpenSSL. Alternatively, you can also use a Windows distribution of OpenSSL (the "light" version is only a 1 MB installer).

    0 讨论(0)
  • 2020-12-22 17:44

    On MySQL.com, MD5s are listed alongside each file that you can download. For instance, 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 just like any other cryptographic hash function, which means that a given array of bytes will always produce the same hash. That means if your downloaded MySQL zip file (or whatever) has the same MD5 as they post on their site, you have the exact same file.

    0 讨论(0)
  • 2020-12-22 17:47

    Download fciv.exe 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 up the help file fciv.exe -h

    0 讨论(0)
  • 2020-12-22 17:47

    The Powershell utility Get-FileHash worked perfectly for me.

    https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/get-filehash

    0 讨论(0)
提交回复
热议问题