Question: Write a C program that decrypts a file named encrypted.txt and places the decryption output to a file called de- crypted.txt. A file encrypted with
Write a C program that decrypts a file named encrypted.txt and places the decryption output to a file called de- crypted.txt. A file encrypted with k = (5, 7) is provided with the assignment. You can use it to test your decryption function. You will know when you have succeeded because the text becomes readable. In your program

Sample Code Execution: Red text indicates information entered by the user Enter the decryption key:2 7 Wrong key Enter the decryption key:5 7 File decrypted! Do you want to re-encrypt the file (y)? y Enter an encryption key: 7 19 File encrypted! Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
