Question: Write a computer program that uses Caesar cipher to do encryption and decryption. Your program has two parts: one for encryption and one for decryption

Write a computer program that uses Caesar cipher to do encryption and decryption. Your program has two parts: one for encryption and one for decryption
(a) Encryption: Your program first asks the user to enter a key (password) which is a number such as 3 or 7. Then it asks for the plaintext to encrypt, your program uses modulo operations to do the encryption and displays the ciphertext. Make it a loop if the key numbers are not either 3 or 7, and a function to either try again or end the program.
(b) Decryption: Your program asks the user to enter a key (password) which is a number such as 3 or 7. Then it asks for the ciphertext to decrypt, your program uses modulo operations to do the decryption and displays the plaintext. Make it a loop if the key numbers are not either 3 or 7, and a function to either try again or end the program.
Fully test your program:
(c) Jgrasp
(d) java python

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!