basics of code development on linux and


Basics of Code Development on Linux and Cryptography

a) Prepare a C program that gives simple mono-alphabetic substitution between plaintext,

all upper case [ABCDEFGHIJKLMNOPQRSTUVWXYZ] and cipher-text all upper case [QWERTYUIOPASDFGHJKLZXCVBNM] indexed as a look-up C array table 0...25 so that the subsequent phrase (ignoring white space) is encrypted - SEAWOLVES ARE NUMBER ONE. After you have written your C cypher using mono-alphabetic substitution, give the encrypted version of the plaintext test here:

SEAWOLVES ARE NUMBER ONE = _______________________________________________


b) Enhance your code to use "-e" to encrypt a string argument and "-d" to decrypt it using argv and argc. Add a transposition feature that will be turned on/off via a command line switch "-t" and make sure that you provide a Makefile so that I may just use "make" to build your code to test it on VB-Linux. Comment your code well and provide examples of both encryption and decryption of strings up to 40 characters in length that are provided on the command line.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: basics of code development on linux and
Reference No:- TGS0446812

Now Priced at $45 (50% Discount)

Recommended (90%)

Rated (4.3/5)