Answers for "powershell convert string to base64"

0

base64 decode in powershell

---decode
$input = “aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQo=”
$output = [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($input))
$output

--encode
$input = ‘text to be encoded’
$By = [System.Text.Encoding]::Unicode.GetBytes($input)
$output =[Convert]::ToBase64String($By)
$output
Posted by: Guest on August-26-2021
0

Coversting Base64 to a string with Powershell

powershell -command {[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('aGVsbG8gd29ybGQ='))}
Posted by: Guest on August-18-2021

Code answers related to "powershell convert string to base64"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language