Created
August 5, 2015 23:25
-
-
Save stpettersens/15b6efd4f9586e3b273e to your computer and use it in GitHub Desktop.
base64 encoder
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 sys | |
import base64 | |
with open(sys.argv[1], 'rb') as binary_file: | |
encoded_string = base64.b64encode(binary_file.read()) | |
print(encoded_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment