$txt="hello"
$md5=New-Object System.Security.Cryptography.MD5CryptoServiceProvider
$bytes=[System.Text.Encoding]::Default.GetBytes($txt)
$hash=$md5.ComputeHash($bytes)
-join($hash | ForEach-Object {$_.tostring("X2")}) #执行结果
powershell 加密字符器 md5
最新推荐文章于 2024-11-26 15:59:08 发布