Use array for this homework. please do not copy it from the internet
The Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution cipher in
which each letter in the plaintext is ‘shifted’ a certain number of places down the alphabet. For example,
with a shift of 1, A would be replaced by B, B would become C, and so on. The method is named after
Julius Caesar, who apparently used it to communicate with his generals.
To pass an encrypted message from one person to another, it is first necessary that both parties have
the ‘key’ for the cipher, so that the sender may encrypt it and the receiver may decrypt it. For the Caesar
cipher, the key is the number of characters to shift the cipher alphabet.
Here is a quick example of the encryption and decryption steps involved with the Caesar cipher. The text
we will encrypt is ‘defend the east wall of the castle, by sending 50 more soldiers there’, with a shift
(key) of 1.
plaintext: defend the east wall of the castle, by sending 50 more soldiers there
ciphertext: FGHGPF VJG GCUV YCNN QH VJG ECUVNG, DA UGPFKPI 61 OQTG UQNFKGTU VJGTG
Write a C# program that allows the user to enter the following information into text boxes:
Whether they want to encrypt a message or decrypt a message
The key value (1 ? 20)
The filename where the original message is located
The program should then either encrypt or decrypt the message, displaying the result in a list box. Test
your program by decrypting the text file secretMessage.txt located in the I:koppoutboxCS 313
01Program Assignments folder. The key for this file is 1. You are required to create an array that will
be the cipher code. Any characters that are not part of the 26 letters of the alphabet and the 10 digits
should be passed through without changing them. When you create your cipher, add the digits 0-9 to
the end of the alphabet and shift for 36 total characters.
Add the following comments to the beginning of the program.
Class and Section:
CS 313 01
Program Assignment 03
Date Turned in:
You write a short description of what the program will do
When you complete the program, do the following.
1. Turn in a printout of the source code from Visual Studio with this sheet attached to the front
2. Create a folder with the following name:
Add punctuation (. , ? ! 😉 and a space as part of the characters of the available alphabet and part of the
cipher. So the above message would cipher to:
Unformatted Attachment Preview
Purchase answer to see full
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more