Files
CyberSecurityClub/Scripts/Caesar_Cipher/caesarCAPS.py
stephensottosanti c912a6214e commit
2021-02-25 18:49:32 -06:00

18 lines
309 B
Python

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