ps/Modules/Cole.PowerShell.Developer/Public/ConvertTo-Base64.ps1
2023-05-30 22:51:22 -07:00

14 lines
273 B
PowerShell

function ConvertTo-Base64 {
<#
.SYNOPSIS
Converts text from UTF8 to Base64
.PARAMETER Input
Some UTF8 encoded text
#>
param (
[string]$InputObject
)
return [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($InputObject))
}