Skip to content

Instantly share code, notes, and snippets.

@trietptm
Created September 8, 2013 16:57
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 trietptm/6486422 to your computer and use it in GitHub Desktop.
Save trietptm/6486422 to your computer and use it in GitHub Desktop.
Cryptanalysis [Root Me: learning platform dedicated to Hacking and Information Security] http://www.root-me.org/fr/Challenges/Cryptanalyse/Encodage-ASCII
import re
str = '4C6520666C6167206465206365206368616C6C656E6765206573743A203261633337363438316165353436636436383964356239313237356433323465'
str_byte_list = re.findall('..', str)
result = ''
for i in xrange(0,len(str_byte_list)):
result = result + chr(int(str_byte_list[i], 16))
print result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment