Created
January 6, 2015 20:55
-
-
Save buchizo/943339609b0a5fbbf229 to your computer and use it in GitHub Desktop.
PowerShellでBase64でエンコードされたMD5なハッシュ値を表示する方法(BlobのContentMD5を変換する方法)
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
[System.BitConverter]::ToString([convert]::FromBase64String("base64な文字列")).ToUpper().Replace("-","") | |
function ConvertFrom-Base64 { | |
param([string]$Base64String) | |
$hex = foreach ($b in [convert]::FromBase64String($Base64String)) { | |
"{0:x2}" -f $b | |
} | |
-join $hex | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment