This is me just parsing an encoded message.
Created
November 7, 2021 13:31
-
-
Save rickumali/7451680e3191c98e90ce13f3ed210dd9 to your computer and use it in GitHub Desktop.
ASCII Code Parser (Python)
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
072 069 076 076 079 032 087 079 082 076 068 |
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 | |
import locale | |
message = [] | |
with open("codez.txt") as f: | |
for line in f: | |
message += re.findall(r'\d\d\d', line) | |
print(''.join([chr(locale.atoi(x)) for x in message])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment