Skip to content

Instantly share code, notes, and snippets.

@codexponent
Created February 6, 2021 11:58
Show Gist options
  • Select an option

  • Save codexponent/5cb53c7da4f2e6b5e0e4a658bfee84d9 to your computer and use it in GitHub Desktop.

Select an option

Save codexponent/5cb53c7da4f2e6b5e0e4a658bfee84d9 to your computer and use it in GitHub Desktop.
Strictly Encoding to Base64
import base64
data = open("script.sh", "rb").read()
encoded = base64.b64encode(data)
print(encoded)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment