logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Cesar MeyerStatistics
(5/5)

511 Answers

Hire Me
expert
Emily PersGeneral article writing
(5/5)

531 Answers

Hire Me
expert
Emily WeiData mining
(5/5)

817 Answers

Hire Me
expert
George BlackbridgeeCriminology
(5/5)

694 Answers

Hire Me
R Programming
(5/5)

Create an integer vector S with values from 1-5.Swap elements 1 and 4.Using the RC4 algorithm randomize S with 256 iterations

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Please write your code in R as an RMD file and submit your script and results for each of the following. 

1. Create an integer vector S with values from 1-5. Swap elements 1 and 4. [Hint: use the swap() function in package seqinr. ( 10 points)

2. Create a binary stream of bits for the string "Parabola". (10 points)

3. Create an initialized S vector for RC4. (10 points)

4. Create an initialized K vector for RC4. Assume that key is the UTF8 code of "Complete". (10 points)

5. Using the RC4 algorithm randomize S with 256 iterations. (10 points)

6. Using the RC4 algorithm generates a keystream of 128 bits starting with the output vector S in question 4. Assume that the key is "Complete". (15 points)

7. Implement RC4 for generating key streams. Your function should contain two parameters: a seed and a key length. (20 points)

8. Create an encryption function using RC4 that takes plain text and a key text as input and returns an encrypted stream of bits as output. (5 points)

9. Create a decryption function using RC4 that takes a cipher as a stream of bits and a key text as input and returns an encrypted stream of bits as output. (5 points)

10. Create a function that takes a binary stream as input and returns the corresponding text. (5 points)

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme