in java
File encryption is the science of writing the contents of a filein a secret code. Write an encryption program that works like afilter, reading the contents of one file, modifying the data into acode, and then writing the coded contents out to a second file. Thesecond file will be a version of the first file, but written in asecret code. Although there are complex encryption techniques, youshould come up with a simple one of your own. For example, youcould read the first file one character at a time, and add 10 tothe character code of each character before it is written to thesecond file.
Write a second program that decrypts the file produced by theprogram. The decryption program should read the contents of thecoded file, restore the data to its original state, and write it toanother file.
Hint: Store the files in .txt format and use the readByte() andwriteByte() methods.