Published
- 1 min read
python ascii caesar cipher
The solution for this is noted below
python ascii caesar cipher
Solution
def ascii_caesar_shift(message, distance):
encrypted = ""
for char in message:
value = ord(char) + distance
encrypted += chr(value % 128) #128 for ASCII
return encrypted
Try other methods by searching on the site. That is if this doesn’t work