Write a procedure that performs simple encryption

Assignment Help Computer Engineering
Reference no: EM132207501

Write a procedure that performs simple encryption by rotating each plaintect byte a varying number of positions in different directions.

For Example, in the following array that represents the encryption key, a negative value indicates a rotation to the left and a positive value indicates a rotation to the right.

The integer in each position indicates the magnitude of the rotation: key byte:-2, 4, 1, 0, -3, 5, 2, -4, -4, 6

Your procedure should loop through a plaintext message and align the key to the first 10 bytes of that message.

Rotate each plaintext byte by the amount indicated by its matching key array value.

Then, align the key value 10 bytes of that message and repeat the process. Write a program that tests your encryption procedure by calling it twice, with different data sets.

Reference no: EM132207501

Questions Cloud

Is this employee eligible for unemployment insurance : He filed for unemployment insurance and his claim was contested. Is this employee eligible for unemployment insurance? Why or why not?
What is difference between job security and career security : What is the difference between job security and career security? Which one would you rather have and why?
What type of training partnership exists : What type of training partnership exists between businesses, government, and education? Be sure to write response in third person narrative.
Obtain a single digit to generate a numerology report : Write a program that will add the digits of a person's birth date to obtain a single digit to generate a numerology report.
Write a procedure that performs simple encryption : Write a procedure that performs simple encryption by rotating each plaintect byte a varying number of positions in different directions.
Calculate the natural rate of unemployment : Calculate the natural rate of unemployment for this example. Now assume that pet = ?pt-1 and suppose ? is initially equal to 0. Suppose that the rate.
Golden girl of metropolitan government : Krista Acklen was the “golden girl” of a metropolitan government in a large midwestern city.
Calculate the average of the first ten terms sequence : Write a piece of code that calculates the average of the first 10 terms sequence using a for loop, and then prints the resulting average.
What is the purpose of establishing pay ranges : What is the purpose of establishing pay ranges? Be sure to write response in third person narrative.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How do you think the proliferation of technology

How do you think the proliferation of technology and the Internet affects our responsibilities to be good stewards of our talents?

  How can you make improvements with a new system

What does the credit card charge form indicate about the existing system? How can you make improvements with a new system?

  Explain how will operating income be affected

If $22364 in fixed costs will be eliminated by dropping the Pitcher line, how will operating income be affected? If income drops, use a negative sign in front.

  Conducting the forensic investigation

Describe the purpose of several initial reviews being conducted by forensics investigator (e.g., time lines, technical skills, procedures).

  Why would not you want to use an array list

What is a Map>? Give a possible use for such a structure. Why wouldn't you want to use an array list for implementing a queue?

  What is the bandwidth efficiency for a 64-psk system

What is the bandwidth efficiency for a 64-PSK system - Can you find the bandwidth efficiency for a 64-PSK system?

  What value of security plans policies procedures and models

What are the value of Security Plans, Policies, Procedures, and Models? (What is the purpose or values of each and how do they relate to each other).

  Write all appropriate connectivities on the erd

Use the following business rules to draw the fully labeled Crow's Foot ERD in Visio. The diagram must include all entities, attributes, and relationships.

  What are vectored interrupts

Which type of interrupt. vectored or polled. requires hardware for priority resolution?

  Create an interface for automobile mechanics

Imagine you are managing a design project that will create an interface for automobile mechanics. The interface would be used by the mechanics to look up.

  Create a testrectangle class in java

An overloaded constructor that takes integer width and height arguments, uses a separate method to check whether the width and height fall within the range between 0 and 30, and throws an exception if out of range.

  Develop a daily production schedule for the buffalo plants

Formulate a linear programming model that can be used to develop a daily production schedule for the Buffalo and Dayton plants.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd