Created
January 17, 2016 17:55
-
-
Save 0x000000AC/56cb2e5f7499daa78cfb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/python | |
# coding: utf-8 | |
#Testing printing out runes for Cicada 3301 | |
message = """\u16cb\u16bb\u16d6\u16a9\u16b7\u16d7\u16e1\u16a0 | |
\u16cb\u16a3\u16d6\u16dd\u16b3\u16b3\u16a6\u16c2 | |
\u16b7\u16ab\u16a0\u16c2\u16df""" | |
table = [ | |
[u'\u16a0', 'F'], | |
[u'\u16a2', 'V'], | |
[u'\u16a6', 'TH'], | |
[u'\u16a9', 'O'], | |
[u'\u16b1', 'R'], | |
[u'\u16b3', 'C'], | |
[u'\u16b7', 'G'], | |
[u'\u16b9', 'W'], | |
[u'\u16bb', 'H'], | |
[u'\u16be', 'N'], | |
[u'\u16c1', 'I'], | |
[u'\u16c2', 'J'], | |
[u'\u16c7', 'EO'], | |
[u'\u16c8', 'P'], | |
[u'\u16c9', 'X'], | |
[u'\u16cb', 'S'], | |
[u'\u16cf', 'T'], | |
[u'\u16d2', 'B'], | |
[u'\u16d6', 'E'], | |
[u'\u16d7', 'M'], | |
[u'\u16da', 'L'], | |
[u'\u16dd', 'ING'], | |
[u'\u16df', 'OE'], | |
[u'\u16de', 'D'], | |
[u'\u16aa', 'A'], | |
[u'\u16ab', 'AE'], | |
[u'\u16a3', 'Y'], | |
[u'\u16e1', 'IA'], | |
[u'\u16e0', 'EA'] | |
] | |
finalText = '' | |
for character in message: | |
for element in table: | |
if character in element: | |
runePosition = table.index(element) | |
finalText += table[runePosition][1] | |
print (finalText) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment