Skip to content

Instantly share code, notes, and snippets.

@macostag
Created April 11, 2020 15:04
Show Gist options
  • Save macostag/16422e413ef72937cc129ad520b39326 to your computer and use it in GitHub Desktop.
Save macostag/16422e413ef72937cc129ad520b39326 to your computer and use it in GitHub Desktop.
Encoding and decoding Base64.
import base64
plain_text = "One"
encoded = base64.b64encode(plain_text)
print encoded
decoded = base64.b64decode(encoded)
print decoded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment