-
-
Save cjemorton/4bb0b794831be1c91695d01bb0ff8ca4 to your computer and use it in GitHub Desktop.
One-liners encoding and decoding Base64 in powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("SecretMessage")) | |
| [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("U2VjcmV0TWVzc2FnZQ==")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment