Skip to content

Instantly share code, notes, and snippets.

@cocuh
Created December 7, 2012 12:38
Show Gist options
  • Save cocuh/4233009 to your computer and use it in GitHub Desktop.
Save cocuh/4233009 to your computer and use it in GitHub Desktop.
online-base64-decoder
(lambda inp:(lambda inp:inp if len(inp)%2 else inp)((lambda inp:hex(int(''.join([(lambda x:((bin(ord(x)-65)[2:].rjust(6,'0')if x.isupper()else bin(ord(x)-71)[2:].rjust(6,'0'))if ord(x)>64 else(bin(ord(x)+4)[2:].rjust(6,'0')if x.isdigit()else(''if ord(x)>50 else('0'if x=='+'else'1').rjust(6,'1')))))(x)for x in inp]),2))[2:].rstrip('0'))(inp)).decode("hex"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment