Question: Write a C++ program to encrypt or cipher a text file (eFile.txt). The text files does contain small letters, capital letter, numbers, spaces, and symbols.


Write a C++ program to encrypt or cipher a text file (eFile.txt). The text files does contain small letters, capital letter, numbers, spaces, and symbols. If the file does not exist, the program should terminate with a file not found error message displayed on the screen. The output (encrypted text) will be displayed on the screen as 50 character per line. Plaintext alphabet: ABCDEFGHIJKLMNOPORSTUVWXYZ Cipher text alphabet: EMNVDLWAUCPOKXQBIZJRYTGSHF Numbers 0123456789 Cipher numbers 9876543210 Special symbols Cipher special symbols : !$%&'()*+,-./;?@{ {}][@?>=<: space replacer symbols>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
