Question: Next we'll be writing a Caesar Cipher. The Caesar cipher is just about the simplest encryption algorithm out there. A Caesar encription shifts each individual

 Next we'll be writing a Caesar Cipher. The Caesar cipher is

Next we'll be writing a Caesar Cipher. The Caesar cipher is just about the simplest encryption algorithm out there. A Caesar encription "shifts" each individual character forward by a certain number or "key". Each letter the alphabet is shifted to the letter in the alphabet that is "key" places past the original letter. \"With a shift value of +1, the string \"ILIKEZOOS\" would be rendered as \"JNIJLFAPPT.\" Write a method called caesarify that takes two parameters. The first argument is a string you want to encrypt, and the second is an integer that contains the shift value or "key". The function should return a sting, which is the input string encrypted with the Caesar cypher using the shift value passed in its second argument. You may assume that the input suing is normalized. " Note that the alphabet \"wraps around\

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!