Created
August 14, 2016 04:14
-
-
Save gtback/e870499054c770701f899630dc6fb058 to your computer and use it in GitHub Desktop.
Simple demonstration of shift ciphers
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
a = "QCRWBUWGBHTIB" | |
for key in range(26): | |
print(key, "".join([chr((ord(x) - ord("A") + key) % 26 + ord("A")) for x in a])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment