Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I've code this cipher program in C. It is only 30 lines long. All it does is scan through the given text by user and

I've code this cipher program in C. It is only 30 lines long. All it does is scan through the given text by user and compare it with the regular alphabet, and I use the regular alphabet index to print out the correct cipher letter. a --> e, b --> f, c --> b, etc.

Print example: attack --> euuebl

My question is, How can I code this cipher program in MASM using Irvine32.inc?

image text in transcribed

#include #include #include Gint main() { char plaintext[26]; char regularAlphabeth[26] = "abcdefghijklmnopqrstuvwxyz"; char cipherAlphabeth[26] = "efbcdghijklmnopqrstuvwxyza"; printf("Enter the code to encrypt: "); fgets(plaintext, sizeof(plaintext), stdin); printf(" "); int i,j; printf("Encripted Code is: "); for (i = 0; i #include #include Gint main() { char plaintext[26]; char regularAlphabeth[26] = "abcdefghijklmnopqrstuvwxyz"; char cipherAlphabeth[26] = "efbcdghijklmnopqrstuvwxyza"; printf("Enter the code to encrypt: "); fgets(plaintext, sizeof(plaintext), stdin); printf(" "); int i,j; printf("Encripted Code is: "); for (i = 0; i

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions