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.