Skip to content

Instantly share code, notes, and snippets.

/octaldecrypt.py Secret

Created March 4, 2018 08:46
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 anonymous/ed4500ede4ef1f59d3bea15587d42c8e to your computer and use it in GitHub Desktop.
Save anonymous/ed4500ede4ef1f59d3bea15587d42c8e to your computer and use it in GitHub Desktop.
Escape
s = '124150145040146154141147040151163040072055040160143164146173123165122146061156066137164150063176064165144111060137167064166063163056146060162136154151146063175'
def octal_decode(s):
res = ""
while len(s) != 0:
triplet, s = s[0:3], s[3:]
res += chr(int(triplet, 8))
return res
print(octal_decode(s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment