Hi all,
Today I will explain the snippet which gives you a base 64 encoded string
$enc = [system.Text.Encoding]::UTF8
$guid = "42f930c2-2ba2-4d5a-a102-898321122414"
$base64encodedstring = [System.Convert]::ToBase64String($enc.GetBytes($guid))
Write-Host "bBse64 Encoded String: $base64encodedstring"
Hope this helps when you are planning to generate and use/store the base64 encoded value
No comments:
Post a Comment