Examples/Vulnerable_OutdatedCrypto_2.ps1

function Get-Md5Hash {
    param($text)
    $enc = [System.Text.Encoding]::UTF8
    $buffer = $enc.GetBytes($text)
    $md5 = [System.Security.Cryptography.MD5]::Create()
    return $md5.ComputeHash($buffer)
}