Question
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
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 is given at the end. 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 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: FGHGPFBVJGBGCUVBYCNNBQHBVJGBECUVNG!BD0BUGPFKPIB72BOQTGBUQNFKGTUBVJGTG
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started