14 lines
273 B
PowerShell
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))
|
||
|
}
|