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

前端 未结 20 2374
夕颜
夕颜 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:52

    for sure the certutil is the best approach but there's a chance to hit windows xp/2003 machine without certutil command.There makecab command can be used which has its own hash algorithm - here the fileinf.bat which will output some info about the file including the checksum.

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

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

    This has worked great for me on windows for a while now. It allows easy copying and pasting of checksums. It has box to type/paste check sums from webpages and show matches or non matches quite well.

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

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

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

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

    for %i in (*) DO CertUtil -hashfile %i MD5
    
    0 讨论(0)
  • 2020-12-22 17:57

    QuickHash an open source tool supporting MD5, SHA1, SHA256, SHA512 and available for the Linux, Windows, and Apple Mac.

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

    0 讨论(0)
  • 2020-12-22 18:02

    The CertUtil is a pre-installed Windows utility, that can be used to generate hash checksums:

    CertUtil -hashfile pathToFileToCheck [HashAlgorithm]
    

    HashAlgorithm choices: 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 output similar to *Nix systems you can add some PS magic:

    $(CertUtil -hashfile C:\TEMP\MyDataFile.img MD5)[1] -replace " ",""
    
    0 讨论(0)
提交回复
热议问题