How to verify a download with SHA-256
What a SHA-256 fingerprint is, what it's for, and how to check on Windows, Mac or Linux that the dub you downloaded arrived complete and unchanged.
Published · Updated · 5 min read
Next to every MageCats download we publish a long code of letters and numbers labeled SHA-256. It looks like a technical detail for experts, but checking it takes less than a minute and answers a very practical question: is the file I have exactly the one they published?
This guide explains what that code is, what it’s for and how to check it step by step on Windows, Mac and Linux, using the Latin American Spanish dub for Dota 2 as an example.
What a SHA-256 fingerprint is
SHA-256 is a method for calculating a file’s digital fingerprint. It takes the entire file, byte by byte, and produces a 64-character code. It has two properties that make it useful:
- The same file always gives the same fingerprint. It doesn’t matter who calculates it, on which computer or with which program.
- The smallest change gives a completely different fingerprint. If a single byte is missing at the end of a download, or if someone modified part of the file, the resulting code looks nothing like the original.
That’s why, if you calculate the fingerprint of the file you downloaded and it matches the one we publish, you can be sure you have the same file we uploaded, complete and unchanged.
What it does for you
There are two situations where checking the fingerprint saves you trouble:
- Incomplete or damaged downloads. A file of several gigabytes can arrive cut short if your connection drops for a moment, and you don’t always notice. The error shows up later, while extracting or halfway through the installation, with confusing messages. The fingerprint catches it before that.
- Files that aren’t ours. If someone passes you the dub from somewhere else, for example a link on a forum or a forwarded file, the fingerprint tells you whether it’s exactly the one we published or whether someone changed it.
The three download servers (Cloudflare, Google Drive and MediaFire) host the same file, so the fingerprint is the same wherever it comes from.
The fingerprint of the Dota 2 dub
For version 1.04 of the Latin American Spanish dub (Full package) for Dota 2, the file MageCats_Dota2_Latino.zip has this SHA-256 fingerprint:
91b54ba781bbdbdcf40ccd8c81655d98febf70f016bc4427cb6d428595150104
Each version has its own fingerprint. When we release a new version, the code will change. The reference is always the one shown in the download section of the Dota 2 page, under “Verify download (SHA-256)”, next to the file you’re about to download.
On Windows, with PowerShell
Windows comes with everything you need. You don’t have to install anything.
- Open the folder where the downloaded ZIP is (usually Downloads).
- Right-click an empty area of the folder and choose Open in Terminal. On older versions of Windows, hold down the Shift key while you right-click and choose Open PowerShell window here.
- Type this command and press Enter:
Get-FileHash .\MageCats_Dota2_Latino.zip -Algorithm SHA256
The calculation takes a few seconds, depending on the speed of your drive. Then you’ll see something like this:
Algorithm Hash
--------- ----
SHA256 834CB19AF35B06D6A700EF3B37BD30C54AE1F340AE3D6A4FD366F54E13DA9087
Compare the code in the Hash column with the published one. Windows shows it in uppercase and we publish it in lowercase: it’s the same code. Uppercase and lowercase don’t matter.
Let Windows compare it for you
Comparing 64 characters by eye is tedious and easy to get wrong. PowerShell can do it for you. Type the command like this, with the published fingerprint in quotes:
(Get-FileHash .\MageCats_Dota2_Latino.zip -Algorithm SHA256).Hash -eq '91b54ba781bbdbdcf40ccd8c81655d98febf70f016bc4427cb6d428595150104'
If the answer is True, the file is correct. If it’s False, it doesn’t match. This comparison isn’t case-sensitive, so it works either way.
On Windows, with Command Prompt
If you prefer Command Prompt (cmd), there’s another tool included with Windows:
certutil -hashfile MageCats_Dota2_Latino.zip SHA256
The result appears on the second line. Compare it with the published one in the same way.
On Mac and Linux
Although the dub is installed on Windows, you might download the file from another computer. Open Terminal in the file’s folder and type:
- On Mac:
shasum -a 256 MageCats_Dota2_Latino.zip - On Linux:
sha256sum MageCats_Dota2_Latino.zip
Both show the fingerprint followed by the file name.
Checking the installer and the .bin files
Inside the ZIP there’s a file called SHA256.json. It’s a list with the fingerprint of every file in the package: the installer MageCats-Dota2-Setup.exe and its two .bin files.
It’s meant for one specific case: if you extracted the ZIP a while ago, moved the files or copied them to another drive, you can check each one separately with the same command, changing the file name. For example:
Get-FileHash .\MageCats-Dota2-Setup.exe -Algorithm SHA256
Open SHA256.json with Notepad and compare each fingerprint with the one in the list.
If the fingerprint doesn’t match
Don’t run anything. A different fingerprint means the file isn’t the one we published. Most likely the download was cut short, although the file may also have come from somewhere else.
- Make sure you’re comparing against the fingerprint for the same version you downloaded.
- Delete the file.
- Download it again, from another of the servers if you can.
- Calculate the fingerprint again.
If after two downloads the fingerprint still doesn’t match, write to us on Discord or at the contact email on the website, with the fingerprint you got and the server you used.
What the fingerprint doesn’t do
A SHA-256 fingerprint checks that the file is identical to the published one. It doesn’t replace your antivirus, and it tells you nothing about a file that isn’t ours. And it’s only useful if the reference fingerprint comes from a trusted source: always take it from the download page on magecats.com, not from a comment, a forum or a forwarded message.