|
-
November 6th, 2009, 06:45 AM
#1
Help with C# console application
Hello,
I need help with creating a console application on C# If somebody can help I will be very thankful! Here is my exercise:
The action of a Caesar cipher is to replace each plaintext letter with one a fixed number of
places down the alphabet. This example is with a shift of three, so that a B in the plain text
becomes E in the cipher text. In cryptography, a Caesar cipher, also known as a Caesar's
cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely
known encryption techniques. It is a type of substitution cipher in which each letter in the
plaintext is replaced by a letter some fixed number of positions down the alphabet. For
example, with a shift of 3, A would be replaced by D, B would become E, and so on. The
method is named after Julius Caesar, who used it to communicate with his generals.
American Standard Code for Information Interchange (ASCII) is a character encoding based
on the English alphabet and it is included in UNICODE standard. ASCII includes definitions
for 128 characters: 33 are non-printing, mostly obsolete control characters that affect how text
is processed; 94 are printable characters (the space is not printable). The ASCII character
encoding is used on nearly all common computers, especially personal computers and
workstations.
Develop a static class with two methods, one for encoding and one for decoding. Both
methods take a string as parameter and return the processed string. You develop an algorithm
that substitutes a given character with one with 4 places down in alphabet and another that
decodes the ciphered text. Create a Console application that tests your methods.
Thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|