Prog 1. File Encryption: 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 each character in the input file into a code, and then writing the coded characters out to a second file. The second file will be a version of the first file but written in a secret code. In Notepad or something similar, you will create a file with text in it. It should be several lines long. Your program should read the file character by character and make some change to the character before writing that character to a second new encrypted file. See program 13-8 to see how to read and write one character at a time. You may come up with an encryption technique of your own or use something simple like adding 10 to the ASCII code of each character in the file before it is written to the second file.
Prog 1. File Encryption: 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 each character in the input file into a code, and then writing the coded characters out to a second file. The second file will be a version of the first file but written in a secret code.
In Notepad or something similar, you will create a file with text in it. It should be several lines long. Your program should read the file character by character and make some change to the character before writing that character to a second new encrypted file. See program 13-8 to see how to read and write one character at a time.
You may come up with an encryption technique of your own or use something simple like adding 10 to the ASCII code of each character in the file before it is written to the second file.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps