Home Work 3: Arrays, Strings and Pointers
A space ()
A comma (,)
A period (.)
An exclamation point (!)
A question mark (?)
For example: plain text is ``word'' key word is ``key'' Assume the numbers are assigned according to their alphabetical order.
To generate the first character of the cipher text, first add the number equivalent of ``w'' to that of ``k'' which is 23+11 = 44. Since it is greater than 27, subtract 27. This would result in a value of 17, whose letter equivalent is ``q.'' Therefore, the first character in the cipher text is ``q.''
When you move to the second letter in the plain text, use the second letter in the key word. When you reach the end of the key, start over with the first letter of the key.
Write a program to derive cipher text from plain text using the above encryption algorithm. You may select the key word length of your choice.
This document was generated using the LaTeX2HTML translator Version 96.1 (Feb 5, 1996) Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
The command line arguments were:
latex2html -split 0 -html_version 3.0 hw3.tex.
The translation was initiated by Vijay & on Thu Mar 5 10:02:53 EST 1998