Skip to content

Instantly share code, notes, and snippets.

@tdewin
Created July 9, 2018 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdewin/efffc0191841e4d5a84620c08a6c3d79 to your computer and use it in GitHub Desktop.
Save tdewin/efffc0191841e4d5a84620c08a6c3d79 to your computer and use it in GitHub Desktop.
Calculate md5 hash of text
function md5text { param($text) ([System.Security.Cryptography.MD5]::Create().ComputeHash([System.Text.Encoding]::UTF8.GetBytes($text))| % {$_.toString("x2") }) -join ""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment