welsonjs/app/assets/ps1/base64encode.ps1

3 lines
161 B
PowerShell

[string]$sStringToEncode=$args[0]
$sEncodedString=[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($sStringToEncode))
write-host $sEncodedString