Skip to content

Instantly share code, notes, and snippets.

@mh0w
Last active January 15, 2025 11:25
Show Gist options
  • Save mh0w/ce80fddcca4aca636ebb6b9f4b27516c to your computer and use it in GitHub Desktop.
Save mh0w/ce80fddcca4aca636ebb6b9f4b27516c to your computer and use it in GitHub Desktop.
Base64 encode powershell command
# Examples
powershell "[convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes(\"Your text goes here - keep the backslashes\"))"
powershell "[convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes(\"password123\"))"
powershell "[convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes(\"_secret!key?here@\"))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment