Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you provide with a screenshot and description, please thank you Implement the RC4 stream cipher in C++. Users should be able to enter any

can you provide with a screenshot and description, please thank you image text in transcribed
Implement the RC4 stream cipher in C++. Users 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: In cryptography, RC4 (Rivest Cipher 4 also known as ARC4 or ARCFOUR meaning Alleged R(4) is a stream cipher. While remarkable for its simplicity and speed in software, multiple vulnerabilities have been discovered in RC4, rendering it insecure. It is especially vulnerable when the beginning of the output keystream is not discarded, or when nonrandom or related keys are used. Particularly problematic uses of RC4 have led to very insecure protocols such as WEP. You should write two 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 the encryption program. 2. A screenshot showing the encryption with a 5 byte key. 3. The cipher text from the encryption, saved in hexadecimal (you may want to use the "hex" butput manipulator) 4. Source code of the decryption program. 5.A screenshot showing the decryption of the cipher text with the same 5 byte key. 6. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

Students also viewed these Databases questions

Question

who are the stakeholders in the inside job

Answered: 1 week ago