Created
September 8, 2013 16:57
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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