Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by www.educba.com #
 
PREVIOUS NEXT
Tagged: #decode #powershell
ADD COMMENT
Topic
Name
2+2 =