Skip to content

Instantly share code, notes, and snippets.

@buchizo
Created January 6, 2015 20:55
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 buchizo/943339609b0a5fbbf229 to your computer and use it in GitHub Desktop.
Save buchizo/943339609b0a5fbbf229 to your computer and use it in GitHub Desktop.
PowerShellでBase64でエンコードされたMD5なハッシュ値を表示する方法(BlobのContentMD5を変換する方法)
[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