Question: Create a Ceaser cipher. Implement a function ceaser_encrypt that takes some text (plaintext) and returns ciphertext. To compute the ciphertext, iterate through each letter in

Create a Ceaser cipher. Implement a function ceaser_encrypt that takes some text (plaintext) and returns ciphertext. To compute the ciphertext, iterate through each letter in the plain text and replace it with the letter that is 13 characters forward in the ASCII alphabet. For letters that are too far towards the end of the alphabet, start back at the beginning of the alphabet and continue counting up to 13. The function should convert plaintext to lower case before operating on the text. All punctuation, numbers, and spaces should be ignored by the cipher.
For example:
>>> def ceaser_encrypt(plaintext):
... # implement me
... pass
...
>>> ceaser_encrypt('You rock!')
'lbh ebpx!'

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 Databases Questions!