Skip to content

Instantly share code, notes, and snippets.

@stesee
Created October 15, 2019 14:10
Show Gist options
  • Save stesee/3f8851bcff5c47f4d617610733abd5d1 to your computer and use it in GitHub Desktop.
Save stesee/3f8851bcff5c47f4d617610733abd5d1 to your computer and use it in GitHub Desktop.
encodes some bin to base64 using powershell
Param([String]$path)
[convert]::ToBase64String((get-content $path -encoding byte))
#Onelineversion:
#[convert]::ToBase64String((get-content C:\Windows\Temp\aria-debug-708.log -encoding byte))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment