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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, caseypearson377
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, jokerr6323
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e. g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
image
Computers and Technology, 23.06.2019 23:30, econsta3
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
image
Computers and Technology, 24.06.2019 08:30, trashellyoung
Why might you choose to create a functional resume
Answers: 1
You know the right answer?
Write a procedure that performs simple encryption by rotating each plaintext byte a varying number o...

Questions in other subjects:

Konu
Mathematics, 09.10.2019 02:30
Konu
History, 09.10.2019 02:30