File hash checker
Pick a file to work out its hash, and paste the hash that the publisher gives to compare the two. The file is read on your computer, a piece at a time, and nothing of it leaves the browser. Get-FileHash and certutil on Windows and sha256sum on Linux give the same hashes; the commands are below.
Hashes
The same on Windows and Linux
With the file you picked, its name goes into the commands.
Commands
Get-FileHash -Path .\file.iso -Algorithm SHA256
certutil -hashfile file.iso SHA256
sha256sum file.iso
Get-FileHashin PowerShell uses SHA256 when no algorithm is named, and its examples show the hash in capitals; case does not matter when you compare.certutil -hashfilein a Command Prompt takes the algorithm as its last word.sha256sumprints the hash, a space, a*or a space, and the file name.sha256sum -creads lines in that form from a file and checks each file they name.
Algorithms
| Algorithm | Hex characters | Get-FileHash | certutil | Linux |
|---|---|---|---|---|
| SHA-256 | 64 | SHA256 | SHA256 | sha256sum |
| SHA-1 | 40 | SHA1 | SHA1 | sha1sum |
| SHA-512 | 128 | SHA512 | SHA512 | sha512sum |
| MD5 | 32 | MD5 | MD5 | md5sum |
MD5 and SHA-1 still show whether a download was damaged, but Microsoft and the GNU Coreutils manual say they are no longer secure against deliberate tampering. Use SHA-256 or SHA-512 where the publisher gives one.
Sources
- Get-FileHash: Microsoft's PowerShell reference for 7.6 and 5.1 (PowerShell-Docs at commit aedd8ef); certutil: Microsoft's certutil reference (windowsserverdocs at commit b640f2c).
- sha256sum and the others, their line format, and MD5 and SHA-1 against tampering: the GNU Coreutils manual (coreutils v9.12).
- The algorithms: SHA-1, SHA-256 and SHA-512 are defined in FIPS 180-4, MD5 in RFC 1321. The page's own code for them is checked against other implementations.
- Microsoft's documentation is used under the Creative Commons Attribution 4.0 International licence (creativecommons.org/
licenses/ by/ 4.0/). The names in the tables are Microsoft's; the words around them are written here in plain words.
More Windows tools
-
Windows error code lookup
Look up 0x80070005, 0xC000006D, 1603 or any other system error, HRESULT, NTSTATUS or bug check code.
-
Robocopy command builder
Build a robocopy command line, paste one to see what each switch does, and decode its exit codes.
-
Msiexec silent install builder
Build install, uninstall and repair commands and look up MSI exit codes.
-
PowerShell EncodedCommand decoder
Read the script inside an encoded PowerShell command, layer by layer, or encode one.
-
.reg file value decoder
hex(2), hex(7), hex(b) and dword values of a .reg file as text and numbers, and a value written as .reg lines.
-
Certificate decoder
Read a certificate, a chain or a request: names, dates, thumbprint, template and account SID.
-
Access mask decoder
Read an access mask such as 0x1200A9 or -1610612736 as file, registry or Active Directory rights.
-
icacls explainer and command builder
Read icacls output such as (OI)(CI)(RX) in plain words, or build commands to grant, deny and remove rights.
-
KMS client keys and slmgr commands
Get the KMS client setup key (GVLK) of a Windows or Windows Server edition and the slmgr commands to activate it.
-
File type from its first bytes
What a file is by its first bytes, not its name: PDF, ZIP, Office, EXE or DLL with its CPU and bitness.
-
Zone.Identifier reader
The Mark of the Web on a downloaded file: its zone and address, and the commands that show and remove it.
-
Windows and IANA time zone names
Eastern Standard Time to America/New_York or America/Toronto and back, with tzutil, PowerShell and timedatectl.