Created
July 9, 2018 10:39
-
-
Save tdewin/efffc0191841e4d5a84620c08a6c3d79 to your computer and use it in GitHub Desktop.
Calculate md5 hash of text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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