I'm trying to decrypt a simple caesar cipher as well as trying to find the initial offset. The output works as expected except that the
I'm trying to decrypt a simple caesar cipher as well as trying to find the initial offset. The output works as expected except that the offsets having to do with the edge of the string is not behaving correctly. In picture of my output, the 12th character should be 'h' as that is what the first offset from 'P' is since 'P' is at the right end of the keystring and 'h' is at the left end. I'm assuming I did something wrong with the if-statement maybe? But I'm not sure, can someone tell me whats going on with my program?
Here is a picture or some of my output for reference
#includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started