Question: In java please Q4. File encryption is the science of writing the contents of a file in a secret code. Your encryption program should work
Q4. 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. Write a program to encrypt a message using the following scheme. Read the first file one character at a time, and add 8 to the character code of each character before it is written to the second file. a) b) Write a program that decrypts the file produced by the above program in a). The decryption program should read the contents of the coded file, restore the data to its original state, and write it to another file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
