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 bea 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. Write a program that decrypts the file produced by the program in above.The decryption program should read the contents of the coded file, restore the data to its original state, and write it to another file.
File encryption is the science of writing the contents of a file in a secret code. Your encryption
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.
Write a program that decrypts the file produced by the program in above.
The decryption program should read the contents of the coded file, restore the data to its original state, and write it to another file.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps