Question: Write a program File Encryption and Decryption File Encryption is the science of writing the contents of a file in a secret code. Your encryption

Write a program File Encryption and Decryption
File Encryption is the science of writing the contents of a file in a secret code. Your encryption program should work like a filter, reading the contents of one file, modifying the data into a code, and then writing the coded contents out to a second file. The second file will be a version of the first file, but written in a secret code. Your program should be able to decrypt the encrypted file. Your program should output the decrypted contents on a separate file and also on the console.
Although there are complex encryption techniques (which you will study eventually if you are a CS major), you should come up with simple algorithm of your own.
For example, you could read the first file one character at a time and add 10 to the ASCII code of each character before it is written to the second file.
Please write separate functions for each part of the algorithm

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!