Skip to content

Instantly share code, notes, and snippets.

@THEMVFFINMAN
Created September 18, 2016 22:10
Show Gist options
  • Save THEMVFFINMAN/c490d2b88f59a3352599fe5c8748dc19 to your computer and use it in GitHub Desktop.
Save THEMVFFINMAN/c490d2b88f59a3352599fe5c8748dc19 to your computer and use it in GitHub Desktop.
Caesar cipher based on 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