If you’re on a Linux or UNIX system, you may have commands lying around that can compute some of these algorithms, e.g. a crc32 command.
As I wasn’t aware of any convenient commands for checking hashes and checksums on Windows, I wrote a simple .NET program that can compute and check the following hash and checksum algorithms on a file:
You can get the program from the Softwariness site on Github:
- Download hashcheck application (direct download link)
- See release page on Github (you can download the source code from there)
If you run hashcheck without parameters, you will get a usage message.
To get all the supported hash and checksum values for a file, run hashcheck with just the filename as an argument. You might want to do this if you are sharing a download on your website, and want to provide these values for a user to check. If you just want to check a hash, see below, as computing all the hash values will be slow for a large download, like a CD image.
To compute just a particular hash value, pass the name of the hash (e.g. MD5) as the second argument.
If you want to validate against the hash value that you found on the download site, pass that as the third argument. This must be in hexadecimal. Different case or extra hyphens will be ignored by hashcheck when comparing the hex.