Skip to content

Instantly share code, notes, and snippets.

@iAnatoly
Created August 4, 2016 17:55
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save iAnatoly/254220f98f2627c484ab32b76c813756 to your computer and use it in GitHub Desktop.
Save iAnatoly/254220f98f2627c484ab32b76c813756 to your computer and use it in GitHub Desktop.
One-liners encoding and decoding Base64 in powershell
[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("SecretMessage"))
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("U2VjcmV0TWVzc2FnZQ=="))
@em-daniil-terentyev
Copy link

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment