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...
-
Show that a wrench can be replaced with two forces, one of which has a prescribed line of action.
-
Consider the monthly log stock returns, in percentages and including dividends, of Merck & Company, Johnson & Johnson, General Electric, General Motors, Ford Motor Company, and value-weighted index...
-
Under what circumstances should a party be joined in an action?
-
1. Where does Hewitt's leadership fall on the Managerial Grid discussed in the chapter? Explain. 2. What deficiencies or shortcomings would you identify in Hewitt's leadership? 3. Is Hewitt's...
-
Using Excel Total row and Sort & filter options, display the following statistics. Hint: You will need to change your data to a table format. Enter your answers/formulas in cells M2:M4 on the...
-
Simplifying the ABC System: TDABC Golding Bank provided the following data about its two checking account products and their associated resources and activities: Resources Activities $60,000...
-
Record the following transactions in the Journal and post them to the ledger. Gillian's gown's received an order for a silk gown from Malie Mills on June 1st June 1st: Factory requisitions 10 yards...
-
Harington's Company issues 24320 shares of its $0.50 par value common stock having a market value of $30 per share and 9000 shares of its $30 par value preferred stock having a market value of $60...
-
Donald transferred stock in his closely held corporation to his daughter valued at $ 8 million. Donald and his wife, Alexis, elected to split the gift pursuant to 2 5 1 3 . The transfer generated a...
-
The Regal Cycle Company manufactures three types of bicycles a dirt bike, a mountain bike, and a racing bike. Data on sales and expenses for the past quarter follow: Total Dirt Bikes Mountain Bikes...
-
Date Transaction Debit amount Date Transaction Credit amount Aug. 1 Balance 2 6 4 , 3 3 0 Aug. 3 1 Goods finished 1 6 5 , 9 6 0 3 1 Direct materials X 3 1 Direct labor 3 2 , 8 0 0 3 1 Factory...
-
Adirondack Marketing Inc. manufactures two products, A and B . Presently, the company uses a single plantwide factory overhead rate for allocating overhead to products. However, management is...
-
A contract will produce cash flows on 4 different dates. The cash inflows are: $1000 after 1 year, $8000 after 3 years, $12000 after 7 years, and 10000 after 10 years. The required rate of return is...
-
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...
-
Weights, in pounds, of a sample of male college soccer players were measured. The following display from a TI-84 Plus calculator presents a 98% confidence interval for the population mean weight. a....
-
A sample of used cars on a lot was taken, and the age of each car was recorded. The following MINITAB output presents a confidence interval for the population mean age. a. How many degrees of freedom...
-
A sample of college students was asked how many hours per week they spent reading. The following display from a TI-84 Plus calculator presents a 95% confidence interval for the population mean time...
Study smarter with the SolutionInn App