Skip to content

Instantly share code, notes, and snippets.

@richardevs
Created December 2, 2019 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardevs/af1ed1aae3bf4bfe8ce1e2946b2ddf9d to your computer and use it in GitHub Desktop.
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.
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