Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ascii caesar cipher

def ascii_caesar_shift(message, distance):
    encrypted = ""
    for char in message:
        value = ord(char) + distance
        encrypted += chr(value % 128) #128 for ASCII
    return encrypted
Source by thecodingprocess.hashnode.dev #
 
PREVIOUS NEXT
Tagged: #python #ascii #caesar #cipher
ADD COMMENT
Topic
Name
7+7 =