Write an assembly language program that does the following: Create an encryption key consisting of multiple...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write an assembly language program that does the following: Create an encryption key consisting of multiple characters. Use this key to encrypt and decrypt the plaintext by XOR-ing each character of the key against a corresponding byte in the message. Repeat the key as many times as necessary until all plain text bytes are translated. Suppose, for example, the key was equal to "ABXmv#7". This is how the key would align with the plain text bytes "Assembly is fun": Assembly n #7 A B Xmv #7 A ABXmv A template for encryption program is also uploaded on Moodle. Your code may be built on the given encryption code. You must take two inputs from user, the plaintext and the key string. Call your encryption/translation procedure twice so that you can show to user both ciphertext and the decrypted text. Write an assembly language program that does the following: Create an encryption key consisting of multiple characters. Use this key to encrypt and decrypt the plaintext by XOR-ing each character of the key against a corresponding byte in the message. Repeat the key as many times as necessary until all plain text bytes are translated. Suppose, for example, the key was equal to "ABXmv#7". This is how the key would align with the plain text bytes "Assembly is fun": Assembly n #7 A B Xmv #7 A ABXmv A template for encryption program is also uploaded on Moodle. Your code may be built on the given encryption code. You must take two inputs from user, the plaintext and the key string. Call your encryption/translation procedure twice so that you can show to user both ciphertext and the decrypted text.
Expert Answer:
Answer rating: 100% (QA)
Note that actual assembly code may vary depending on the specific assembly language youre using eg x... View the full answer
Related Book For
Introduction to Wireless and Mobile Systems
ISBN: ?978-1305087132
4th edition
Authors: Dharma P. Agrawal, Qing An Zeng
Posted Date:
Students also viewed these accounting questions
-
Write an assembly language program that displays the dollar sign ($) 10 times on the first line and 5 times on the second line. SAMPLE: section .text global_start ;must be declared for linker (gcc)...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Being employed as a casual barista in a local caf with a flourishing catering business called 'Brown's Caf' , where you are supervised by the caf owner, Jessica Williams. The company employs 20...
-
Rogers, North, & Housour, LLC is a large, regional CPA firm. There are 74 employees at their Glen Allen, SC office. The administrative assistant at this office approached Mr. Rogers, one of the...
-
For each function find f(x + h) and f(x) + f(h). f(x) = 3x - x
-
Petitioner Christy Brzonkala met respondents Antonio Morrison and James Crawford at a campus party at Virginia Polytechnic Institute (Virginia Tech), where they were all students. At the party, the...
-
Matching Place the abbreviations corresponding to the appropriate reporting attribute(s) in the spaces provided for each financial statement. Include all that apply. Activities or Funds Basis of...
-
A Rolls-Royce Phantom weighing 2.49 x 104 N is traveling in the +x direction with an initial speed of 40.2 m/s when the driver hits the brakes. The car slows to a stop in 5.60 s. If the acceleration...
-
Dwight Donovan, the president of Donovan Enterprises, is considering two investment opportunities. Because of limited resources, he will be able to invest in only one of them. Project A is to...
-
Adidas, Nike, and Reebok are some of the world's largest manufacturers for athletic apparel. Adidas has approximately 70 million sq ft available, Nike has approximately 110 million sq ft. available,...
-
You purchase an Asian Paints Ltd bond on the Bombay Stock Exchange with an invoice price of R9,342. The bond has a coupon rate of 6.45 per cent, and there are 5 months to the next semi-annual coupon...
-
What are the five Cs of credit? Give an example of what happens when one of the 5Cs is not met. Are there any other factors a firm should consider?
-
Consider the following experiment: you submit a purchase order for every firm commitment initial public offering of oil and gas exploration companies. There are 22 of these offerings, and you submit...
-
A convertible bond with a face value of 1,000 has a conversion ratio of 16.4. What is the conversion price?
-
Why do firms hold cash? What are the consequences of holding too little cash? Is it possible for a firm to have too much cash? Why would shareholders care if a firm accumulates large amounts of cash?...
-
1). For which structure(s) does the electron-bearing carbon atom have a formal charge of zero? 2). For which structure(s) is the net charge zero? 0% 10% 096 0% 0% 0% #0% 00% 00% 10 00% 1 30% 12 00%...
-
F.(3e* -2x 3 sin(2x)) is equal to 2 3 Cos 8. IT 3, t (4+@ 2 3, 1+o 1 4 Cos 4 4 1 3. 1 +4cos V7 (1+o 4 1 4 Cos 4 1+0 4-
-
Can any of the methods (e.g., I-TCP, M-TCP, SACK, EBSN) be used to improve performance of TCP over wireless ad hoc networks? Suggest any ways by which this can be done.
-
The message signal is given by and the carrier is given by Using frequency modulation with modulation index is 5, (a) Write an expression for the modulated signal (b) What is the maximum frequency...
-
Prove that the average transmission time in terms of block duration, TSR, for Selective-Repeat ARQ is given by: Where PACK is the probability to return an ACK in the transceiver side. Also, solve the...
-
As shown in Exhibit 5, LOral reported an operating margin of 16% in 2011, which makes it the most profitable company among beauty companies. However, the average operating margin of 18% for home and...
-
The consumer goods company Unilever reported an overall operating margin of 14.9% in 2011. As shown in Exhibit 7, the operating margin is higher in the slower growing Western European and Americas...
-
Dutch grocer Ahold has a debt structure with a relatively high amount of cash on its balance sheet. i. Calculate the interest expense on the average gross debt and interest rate on the average cash...
Study smarter with the SolutionInn App