RosettaCodeData/Task/MD5/PowerShell/md5.psh

5 lines
234 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
$string = "The quick brown fox jumped over the lazy dog's back"
$data = [Text.Encoding]::UTF8.GetBytes($string)
$hash = [Security.Cryptography.MD5]::Create().ComputeHash($data)
([BitConverter]::ToString($hash) -replace '-').ToLower()