{"id":373,"date":"2021-05-04T05:30:34","date_gmt":"2021-05-04T03:30:34","guid":{"rendered":"https:\/\/infosecscout.com\/?p=373"},"modified":"2023-11-22T13:02:20","modified_gmt":"2023-11-22T12:02:20","slug":"get-md5-hash-in-powershell","status":"publish","type":"post","link":"https:\/\/infosecscout.com\/get-md5-hash-in-powershell\/","title":{"rendered":"How to Get an MD5 Hash in PowerShell?"},"content":{"rendered":"\n

MD5 is a hashing algorithm, still popular despite the security issues. You can use it to encrypt a string or to get the fingerprint of a file. In this article, we’ll see how to use it in PowerShell.<\/p>\n\n\n\n

PowerShell offers a cmdlet to generate MD5 hash for a file: Get-FileHash. It can also be used to get the MD5 hash for a string, by opening a stream and hashing it.<\/strong><\/p>\n\n\n\n

I’ll start by showing you how to use this cmdlet for a file, which is its main purpose. And then we’ll see how you can use it to hash strings too.<\/p>\n\n\n\n

\n
\n

Table of Contents<\/p>\nToggle<\/span><\/path><\/svg><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n