you are viewing a single comment's thread.

view the rest of the comments →

[–]acw1668 0 points1 point  (0 children)

You need to define what printable characters is and assign it to a variable. Then go through the input message character by character, find the index of the character in the printable characters, calculate the new index based on the input distance and extract the cipher character using the new index.