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 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
question
Computers and Technology, 25.06.2019 17:50
The elements of an integer-valued array can be set to 0 (i.e., the array can be cleared) recursively as follows: an array of size 0 is already cleared; otherwise, set the first element of the array to 0, and clear the rest of the array write a void function named clear that accepts an integer array, and the number of elements in the array and sets the elements of the array to 0.
Answers: 2
question
Computers and Technology, 26.06.2019 06:00
“bins” are the term for data files that have been edited out of digital film true/false
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
Mathematics, 12.05.2021 23:50
question
Mathematics, 12.05.2021 23:50
question
Mathematics, 12.05.2021 23:50
question
Mathematics, 12.05.2021 23:50
Questions on the website: 13722359