Description :

1 - File encryption is the science of writing the contents of a file in a secret code. The 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. Although there are complex encryption techniques, you should come up with a simple one of your own. For example, you could read the first file one character at a time, and add 10 to the character code of each character before it is written to the second file.

2 - File Decryption Filter Write a program that decrypts the file produced by the program in Programming Challenge 7. The decryption program should read the contents of the coded file, restore the data to its original state, and write it to another file In both cases, make sure you create a custom Exception to let the user know, when decrypting if the input file was not encrypted ( read a random character, apply your decryption algorithm and see if the result is in the ASCII range ) or if the input file is not clear text, when encrypting ( read a random character and see if it is in the ASCII range, if not do not encrypt )

The solution class should have both encryption and decryption methods, thus a single class for both problems and two classes for the two custom exceptions.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.