Question: Implement the RC4 stream cipher in C++. User should be able to enter any key that is 5 bytes to 32 bytes long. Be sure
Implement the RC4 stream cipher in C++. User should be able to enter any key that is 5 bytes to 32 bytes long. Be sure to discard the first 3072 bytes of the pseudo random numbers. THE KEY OR THE INPUT TEXT MUST NOT BE HARD CODED IN THE PROGRAM.
Test your program with the following plain text:
http://cms.uhd.edu/Faculty/yuans/courses/cs3326/Projects/rc4Input.txt
You should write TWO separate programs: encryption and decryption. The encryption program should input the plaintext file and output a cipher text in hex. The decryption program should input the cipher text file in hex and output the plaintext.
Submit the following:
1. Source code of both programs.
2. Two screen shots showing the encryption then decryption with a 5 byte key
3. The cipher text from the encryption, saved in hexadecimal (you may want to use the hex output manipulator)
4. The plaintext from the decryption of the cipher text (you need to convert hex text to number)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
