October 04, 2020

Base 64 Encode with Powershell Script

 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:

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com