How to decode a Base64 string?

后端 未结 5 530
旧时难觅i
旧时难觅i 2020-12-24 04:38

I have a normal string in Powershell that is from a text file containing Base64 text; it is stored in $x. I am trying to decode it as such:

$z =         


        
5条回答
  •  有刺的猬
    2020-12-24 05:20

    This page shows up when you google how to convert to base64, so for completeness:

    $b  = [System.Text.Encoding]::UTF8.GetBytes("blahblah")
    [System.Convert]::ToBase64String($b)
    

提交回复
热议问题