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

please answer the question of following Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? B

#question.to determine the area of a triangle,rectangle and trapezium

Write a program that reads data into an array of type int. You must use an array. The numbers input are attendance numbers at a conference. Keep a running average, number of events

#questiowrite a program to calculate e^x

a program to find the area under curve y=f(x) between x=a and x=b,integrate y=f(x) between the limits of a and b.   #include float start_point, /* G

The following is the formula that can be used to complete that calculation: Monthly Payment = Monthly Interest Rate / (1 - (1 + Monthly Interest Rate) -Payment Interval )) *

A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of the c

where to use tower of honoi?

A: The simplest way is to use a stringstream: #include #include #include using namespace std; string itos(int i) // convert int to string { stringstream s;