CCCPaste

Create MD5 hash from string


[string]$stringToHash = "Hello world"

$md5 = [System.Security.Cryptography.MD5]::Create()

[System.BitConverter]::ToString( ($md5.ComputeHash([System.Text.Encoding]::UTF8.GetBytes( $stringToHash )))) -replace '-'