subject

Write a procedure that performs simple encryption by rotating each plaintext byte a varying number of positions in directions. For example, in the following array that represents the encryption key, a negative value indicates a rotation to the left and a positive values 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. The procedure has 5 parameters: the plaintext string, the length of the plain text string, the key array, the length of the key array, and the encrypted string. The function returns the encrypted string. All the parameters are registers parameters Your function should employ the uses operator if possible. g masm

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
Write a procedure that performs simple encryption by rotating each plaintext byte a varying number o...
Questions
question
History, 20.01.2021 19:50
question
English, 20.01.2021 19:50
question
World Languages, 20.01.2021 19:50
question
Mathematics, 20.01.2021 19:50
question
Mathematics, 20.01.2021 19:50
question
English, 20.01.2021 19:50
question
Advanced Placement (AP), 20.01.2021 19:50
question
English, 20.01.2021 19:50
Questions on the website: 13722365