Last active
October 7, 2017 16:21
-
-
Save binary10/c6641131af9cf00ae267dc21a58db213 to your computer and use it in GitHub Desktop.
Revisions
-
binary10 revised this gist
Oct 7, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,6 @@ # Q29udmVydCBtZSB0byBiYXNlNjQh # Take base64 string and decode back to original string base64.b64decode(sb64).decode('utf-8') # 'Convert me to base64!' -
binary10 renamed this gist
Oct 7, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
binary10 created this gist
Oct 7, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ import base64 # Create a string and encode to bytes s = 'Convert me to base64!' sb = s.encode('utf-8') # Take bytes and encode to base64 string sb64 = base64.b64encode(sb).decode() # Q29udmVydCBtZSB0byBiYXNlNjQh # Take base64 string and decode back to original string base64.b64decode(sb64) # b'Convert me to base64!'