4 lines
99 B
PowerShell

function ConvertToBase64($string)
{
return [System.Convert]::ToBase64String([Char[]]$string)
}