Write a program in assembly language performing followingtasks:
- Take an input string from the keyboard
- Encrypt the input string following an encryption algorithm (seebelow)
- Write a decryption procedure to decrypt the message.
The encryption algorithm:
First you need to pre-select an integer, say k, and keep it as asecret
For a plain character in the input message, including space,perform the following byte operations:
- add k to it
- rotate left for k times
- and then store the result in memory.
Decryption: Reverse the operations inencryption
- Rotate right for k times
- Minus k from it
We must create a simple encryption and decryption program in theassembly language nasm.
Answer to Write a program in assembly language performing following tasks: Take an input string from the keyboard Encrypt the inpu…