Question: Write a Python program, named caesar_cipher.py, that will prompt the end-user for the plaintext to be encrypted and the shift factor. Create a ciphertext string

Write a Python program, named caesar_cipher.py, that will prompt the end-user for the plaintext to be encrypted and the shift factor.

Create a ciphertext string by shifting the input by that many characters to the right.

Display the encrypted string to the user.

Write another Python program, named caesar_decrypt.py, that will take an encrypted string and factor as input and decrypt the string by subtracting the factor from each character's ASCII code.

Upload:

  • caesar_cipher.py
  • caesar_decrypt.py

NOTE: Don't worry about the letters "wrapping" around to the start of the alphabet. Just use the next character in the ASCII chart. With a shift of one, a "z" would become "{".

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!