Created
December 2, 2019 09:38
-
-
Save richardevs/af1ed1aae3bf4bfe8ce1e2946b2ddf9d to your computer and use it in GitHub Desktop.
Simple python application to decode base64, just run and input any base64 string.
This file contains 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 | |
def base64_decode(strg): | |
res = base64.urlsafe_b64decode(strg + '=' * (-len(strg) % 4)) | |
print(str(res.decode('utf-8'))) | |
print("") | |
while True: | |
strg = input() | |
if strg == "exit": | |
break | |
print("") | |
base64_decode(strg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment