Question: Procedure: Implement, in LC - 3 assembly language, an encryption and a decryption programs that meet the following requirements: 1 . The key is 6
Procedure:
Implement, in LC assembly language, an encryption and a decryption programs that meet the
following requirements:
The key is and stored at x
Your message is restricted to a maximum of characters. They are stored at x to
xF The last ASCII code of the text string must be EOT x
The encryption algorithm is as follows. Each ASCII code in the message will be
transformed as follows:
The lower bits of the code will be toggled. That is if it is a it will be replaced
by and vice verse.
The key will be added to the result of step above.
The result should be stored at location x to xF
For example, if the input plain text is A toggles lower bits, and the encryption
key is the program should take the ASCII value of A toggle bit :
producing and then add the encryption key, The final output
character would be which is the ASCII value T
Decryption algorithm is as follows. Each ASCII code in the message will be transformed
as follows:
Subtract the encryption key from the ASCII code.
Toggle the low order bit of the result of step
The result should be stored back to location x to xF
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
