Question: Caesar cipher is a style of message encryption that has existed for many centuries. For a Caesar cipher to work, it requires a message and
Caesar cipher is a style of message encryption that has existed for many centuries. For a Caesar cipher to work, it requires a message and a key. Each letter of the message is then shifted forwards in the alphabet by the key. For example: ABCDE encrypted with the key, would be: CDEFGTEST TEST encrypted with the key of would be: ZKYZ ZKYZX encrypted with the key, would be: C as when a letter goes beyond Z it wraps back around to A For more information on Caesar cipher, you may wish to do a bit of research. Write a direct recursive function that takes a string of uppercase characters and a key and returns the message encrypted using Caesar cipher. If the string contains any nonuppercase alphabetic characters, you can simply add them in their original position to the encrypted string, unchanged
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
