Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MASM assembly language Make a program that gets a plain text and a key as input. Use the key to encrypt and decrypt the plain

MASM assembly language

image text in transcribed

Make a program that gets a plain text and a key as input. Use the key to encrypt and decrypt the plain text by XORing each character of the key against a corresponding byte in the message NOTE: 1. The length of plain text does not exceed 40 characters. 2. 'Enter' character () is not counted in string length. 3. The length of key does not exceed 10 characters. 4. If the length of key is less than plain text, repeat the key as many times as necessary until all plain text is translated Ex. Plain text : "Assembly Programming!", Key : 5v*qe 5. Print out the original text, encrypted text, and decrypted text once the user enters a text and a key 6. Input 'Enter' character () to finish the program C:W>s171234J Enter a plain text : This is the secret messageJ Enter a key aG5!r3,J Original Text This is the secret message Encrypted Text: (print message encrypted by given key) Decrypted Text: This is the secret message Enter a plain text I am your fatherJ Enter a key : 7b@pJ Original Text: I am your father Encrypted Text : (print message encrypted by given key) Decrypted Text: I am your father Enter a plain text .J Bye! C:W> Make a program that gets a plain text and a key as input. Use the key to encrypt and decrypt the plain text by XORing each character of the key against a corresponding byte in the message NOTE: 1. The length of plain text does not exceed 40 characters. 2. 'Enter' character () is not counted in string length. 3. The length of key does not exceed 10 characters. 4. If the length of key is less than plain text, repeat the key as many times as necessary until all plain text is translated Ex. Plain text : "Assembly Programming!", Key : 5v*qe 5. Print out the original text, encrypted text, and decrypted text once the user enters a text and a key 6. Input 'Enter' character () to finish the program C:W>s171234J Enter a plain text : This is the secret messageJ Enter a key aG5!r3,J Original Text This is the secret message Encrypted Text: (print message encrypted by given key) Decrypted Text: This is the secret message Enter a plain text I am your fatherJ Enter a key : 7b@pJ Original Text: I am your father Encrypted Text : (print message encrypted by given key) Decrypted Text: I am your father Enter a plain text .J Bye! C:W>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions