welsonjs/app/assets/ps1/base64encode.ps1

3 lines
161 B
PowerShell
Raw Normal View History

2022-01-17 16:10:29 +00:00
[string]$sStringToEncode=$args[0]
$sEncodedString=[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($sStringToEncode))
write-host $sEncodedString