Performs simple encryption

Assignment Help Basic Computer Science
Reference no: EM133197740

Write a procedure that performs simple encryption by rotating each plaintext 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 the message. Rotate each plaintext byte by the amount indicated by its matching key array value. Then, align the key to the next 10 bytes of the message and repeat the process. Write a program that tests your encryption procedure by calling it twice, with different data sets.

Reference no: EM133197740

Questions Cloud

Selection of industry and cyber issues : CMP 620-University of Maryland University College-write a short paragraph about the cybersecurity issues you discover for your particular industry.
Implement to reduce the effectiveness : explain each technique and recommend countermeasures you would implement to reduce the effectiveness of these tools by hackers.
Implementation of innovation technologies : Journal article focuses on attribution theory and how it influences the implementation of innovation technologies.
Create procedure that fills array of doublewords : City College of San Francisco-Create a procedure that fills an array of doublewords with N random integers,
Performs simple encryption : City College of San Francisco-Write procedure that performs simple encryption by rotating each plaintext byte varying number of positions in different direction
Requirements gathering process : Why is covered as part of the requirements gathering process for a usability study.
Compare mobile applications vs websites : Morgan State University-Compare and Contrast mobile applications vs websites. Discuss different system mobile functionalities.
Find a website you are interested : IT 404-Find a website you are interested in. Analyze one page from the website by listing explain them.
Influences interaction design : Which of these questions do you believe influences interaction design the most?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Several methods to attack and defeat crysysptotems

Malicious individuals have discovered several methods to attack and defeat crysysptotems.

  Consider a server with poisson job-arrival stream

Consider a server with Poisson job-arrival stream at an average rate of 60 per hour. Determine the probability that the time interval between successive job arrivals is

  Discuss some of software engineering

Cumberland University-Discuss some of the "Software Engineering " constraints that must be overcome in order build a successful system.

  Load balancing of amazon web services

Research on the topic Load Balancing of Amazon Web Services (AWS)

  Summarize your background and what makes you unique

Summarize your background and what makes you unique (your competitive advantage/differentiation) in a one-paragraph elevator pitch.

  What names are displayed in the list box

What names are displayed in the list box when the button is clicked? Private Sub btnDisplay_Click(...) Handles btnDisplay.Click  Dim name(4) As String

  Data structure and algorithms question

Data Structure and Algorithms Question, (JAVA). Implement a commonly used hash table in a program that handles collision using linear probing.

  Print the content of the array

Write method print that will take a two dimensional character array as input, and print the content of the array.

  Prove by solving the equations using laplace transform

For a RC circuit, we can use Laplace transforms to show that when we apply a step input of 5V, the voltage across the capacitor rises exponentially to a final value equal to step input.

  Find the measure of the angle with the least measure

Two sides of a parallelogram measure 60 centimeters and 40 centimeters. If one angle of the parallelogram measures 132°, find the length of each diagonal.

  Design a database for public libraries

John works for an IT service company as a senior database designer. His company just won a few contracts to serve several public library systems within the state of Maryland. Each library system operates independently though John is in charge to d..

  The field of information technology

The main page should have information about the field of information technology and the courses you would take in a typical CIS program. Also, add reasons why you decided to major in CIS. Finally, the main page should have three links. Each link will..

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