Caesar cipher, C/C++ Programming

This task involves char arrays and pointer based string handling. Which we use to make a simple encryption program, using a Caesar Cipher,

Write a program that:

a. Asks the user to input a line of test

i. Converts this text so it is suitable for encryption

1. Converted to all be in lower case

2. Remove all non-letter characters

ii. This is the plain text.

b. Calls a function getLength which:

i. Takes one argument - the input string

ii. Returns the length of the string (excluding the NULL terminator)

c. Prints the length of the input string

d. Ask the user for the shift value.

e. Call a function makeCypher which:

i. Takes the shift value as an argument

ii. Returns the "Ciphertext alphabet" based on that keyword

f. Calls a function encrypt which

i. Takes two arguments

1. The input string

2. The "Ciphertext alphabet"

3. The "Group Count"

ii. Returns the input string suitably encrypted with the code and in set of characters "Group Count" long with any leftover spaces filled with random characters

Posted Date: 2/13/2013 1:18:31 AM | Location : United States







Related Discussions:- Caesar cipher, Assignment Help, Ask Question on Caesar cipher, Get Answer, Expert's Help, Caesar cipher Discussions

Write discussion on Caesar cipher
Your posts are moderated
Related Questions
The Scope Resolution Operator( :: ) Global variables are explained outside any functions and thus can be used by all the functions defined thereafter. However, if a global vari

write a c++ program which finds minimum of three numbers

A: It let you to provide an intuitive interface to users of your class, as well as makes it possible for templates to equally work well with classes and built-in/intrinsic types.

A: In C++ the access privileges are public, private and protected. The default access level assigned to members of a class is private. Private members of any class are accessible o

WAP TO ACCEPT THE BASIC SALARY OF EMPLOYEES & CALCULATE NET SALARY   #include stdio.h> #include conio.h>   void main() {                    float Basi


Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

claculate 5% tax >10000 sal

Dereferencing the Pointer this Sometimes a member function requires to make a copy of the invoking instance so that it can change the copy without affecting the original instan

write a simple c++ program to implement a stack: 1. push 2. pop