Created
April 11, 2020 15:04
-
-
Save macostag/16422e413ef72937cc129ad520b39326 to your computer and use it in GitHub Desktop.
Encoding and decoding Base64.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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