Created
September 18, 2016 22:10
-
-
Save THEMVFFINMAN/c490d2b88f59a3352599fe5c8748dc19 to your computer and use it in GitHub Desktop.
Caesar cipher based on unicode characters
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
# -*- coding: utf8 -*- python | |
caesar = 13 | |
with open('ciphertext (2).txt', 'r') as f: | |
text = f.read() | |
converted = "" | |
for ch in text: | |
character = ord(ch) - caesar | |
converted = converted + unichr(character) | |
print (converted + "\n\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment