Question

Implement the RC4 stream cipher in C++. User should be able to enter any key that is 5 bytes to 3...

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 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 RC4) 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.

The encryption program should input a plaintext.txt file and output a cipher text in hex.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ing Make 〈unrmed cran key[], î.et leygthJuce ExTT FAILUREe (EXIT FAILURE)elsc et (Ex FAILURE)Sc Std: steam auftle ext EXIT- FAILURE) out f:1e , close( ) bi 拜(mittle.rs-open()Kstd end cxii(Ex17. FAILURE);

Add a comment
Know the answer?
Add Answer to:
Implement the RC4 stream cipher in C++. User should be able to enter any key that is 5 bytes to 3...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Implement the RC4 stream cipher in C++. User should be able to enter any key that...

    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. program should be tested by a plain text You should write TWO PROGRAMS: encryption and decryption. The encryption program should input the plaintext file and output a cipher text in...

  • Write a program that implements an elementary bit stream cipher. An elementary level bit stream cipher...

    Write a program that implements an elementary bit stream cipher. An elementary level bit stream cipher is an encryption algorithm that encrypts 1 byte of plain text at a time. This one uses a given 4-bit bit pattern as the key. The size of the encrypted message that we want to be able to send has a maximum length of 200 characters. You must: 1. prompt the user to input the clear text to be encrypted. You must use printf()...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT