Feuerfest

Just the private blog of a Linux sysadmin

Calculating filehashes with PowerShell (Get-FileHash)

As I forgot again that PowerShell has the Get-FileHash cmdlet I am now writing a small article about it.

It's plain easy to use and supports MD5, SHA1, SHA256, SHA384, SHA512, MACTripleDES, RIPEMD160.

This way I can check if the .zip-file containing the Android ROM update for my mobile was downloaded correctly.

PS D:\> Get-FileHash -algorithm MD5 .\0e4b047c9f2d49df8d92f45ebff4704f.zip

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
MD5             1C53E270FE049B1CDBD361F6A29900D0                                       D:\0e4b047c9f2d49df8d92...

PS D:\>

Back in the day I used the HashTab to add a "Hashes" tab to the file detail dialog. Displaying the hash for several algorithms for the file. Even allowing to compare them against a given string.

Sadly that utility is not developed anymore. German IT magazine Heise still has a download and it should still work under Windows 10, but I'm good with the PowerShell cmdlet.

Tags: Powershell, Windows