This commit is contained in:
stephensottosanti
2021-03-08 22:10:38 -06:00
parent bde89f4f1a
commit 0b51262827
47 changed files with 5 additions and 5 deletions
@@ -0,0 +1,3 @@
# Caesar Cipher
caesarCAPS.py will take in a word in which every letter is in all caps and it will print every rotation. You can then go through everything that was printed out and see if there are any cleartext words.
@@ -0,0 +1,17 @@
text = input("Enter string in all caps for rot: ")
rot = 0
new = 0
while (rot < 26):
for x in text:
if ((ord(x) + rot) > 90):
new = ((ord(x) + rot) % 90) + 64
else:
new = ord(x) + rot
x = chr(new)
print(x, end = "")
print("\n")
rot += 1