Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement the RC4 stream cipher in JAVA. User should be able to enter any key that is 5 bytes to 32 bytes long. Be sure

Implement the RC4 stream cipher in JAVA. 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 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 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.

Your program must be able to do both encryption and decryption. Submit the following:

1. Source code

2. A screen shot showing the encryption then decryption with a 5 byte key

3. The ciphertext from the encryption, saved in hexdecimal (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

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_2

Step: 3

blur-text-image_3

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

Is SHRD compatible with individual career aspirations

Answered: 1 week ago