Question: C++ Implement the RC4 algorithm in the following steps: (a) Initialize the S vector and T vector for a given seed (or initial key); (b)
C++
Implement the RC4 algorithm in the following steps:
(a) Initialize the S vector and T vector for a given seed (or initial key);
(b) Permute the S vector;
(c) Generate key streams;
(d) Encrypt each byte stream of the plain text using the corresponding key byte
(e) Decrypt each byte stream of the cipher text using the corresponding key byte; When XORing two same bytes, you will generate 0. Just produce the byte itself if two bytes are same.
2. Experiment the correctness of your program by using the following plain text and seed:
(a) plain text: cryptology seed: 1 2 3 6
(b) plain text: RC4 seed: 5 7 8 9 For each test of your RC4 algorithm, you need to output the following information
(a) Plain text
(b) Seed
(c) The vector S after intitial permutation
(d) Key streams used for the input plain text
(e) Enrypted message
(f) Decrypted message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
