Skip to content

Instantly share code, notes, and snippets.

@wangxiaodong
Created August 13, 2014 12:12
Show Gist options
  • Save wangxiaodong/1fefed47495328bc3248 to your computer and use it in GitHub Desktop.
Save wangxiaodong/1fefed47495328bc3248 to your computer and use it in GitHub Desktop.
thunder url decoder
import base64
thunderUrl = raw_input("thunder url:")
header = "thunder://"
# thunderUrl = "thunder://QUFodHRwOi8vZGwxMTcuODBzLmxhOjkyMC8xNDA3L+S/oeWPty/kv6Hlj7dfaGQubXA0Wlo="
thunderUrl = thunderUrl[len(header):]
print base64.b64decode(thunderUrl)[2:-2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment