Question: Problem 1 File Encryption: First write a java program to encrypt a file by adding 5 to every byte in the file. Your program should

 Problem 1 File Encryption: First write a java program to encrypt

Problem 1 File Encryption: First write a java program to encrypt a file by adding 5 to every byte in the file. Your program should prompt the user to enter an input file name and an output file name. Next write a program to decode the encrypted file. Your program should prompt the user to enter an input file name and an output file name and should save the decrypted version of the input file to the output file. Hint: You should use the FileInputStream/ FileOutputStream or BufferedOutputStream/ BufferedOutputStream to handle the file. The method to read/write a byte from the file is read() and write(). You can directly add and minus integer value from the byte value. What to turn in: Submit your completed .java files on Canvas under the link for this assignment. The files should be named: encode.java decode.java Please submit them as separate files. (Don't zip them into an archive file.) Problem 1 File Encryption: First write a java program to encrypt a file by adding 5 to every byte in the file. Your program should prompt the user to enter an input file name and an output file name. Next write a program to decode the encrypted file. Your program should prompt the user to enter an input file name and an output file name and should save the decrypted version of the input file to the output file. Hint: You should use the FileInputStream/ FileOutputStream or BufferedOutputStream/ BufferedOutputStream to handle the file. The method to read/write a byte from the file is read() and write(). You can directly add and minus integer value from the byte value. What to turn in: Submit your completed .java files on Canvas under the link for this assignment. The files should be named: encode.java decode.java Please submit them as separate files. (Don't zip them into an archive file.)

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 Databases Questions!