Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago