PowerShell function: Get-HashFromString

Hi, everyone!

In a previous post, I built a function on how to get an MD5 hash from a file stored in memory.  I had a particular need this holiday season to compute a hash of a text input string, so I thought I would share my solution with you:

Function Get-HashFromString($String)
{
  $md5hash = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
[ Continue reading ]