Question: Crypto Interface Project Encryption can be described as the process of writing data in a secret code. Decryption is the process of restoring encrypted data

CryptoInterface Project
Encryption can be described as the process of writing data in a secret code. Decryption is the process of restoring encrypted data to its original state. If you want to send a secret message to someone, you use an encryption algorithm to encrypt the message before you send it. The person receiving the encrypted message must use a decryption algorithm to convert the message to its original contents.
Although not very secure, one of the simplest types of encryption algorithms is the substitution algorithm. A substitution algorithm takes a string and substitutes each character with some other predefined character. For example, each occurrence of the letter A might be substituted with the letter M, and each occurrence of the letter B might be substituted with the letter W. To decrypt the message, the substitutions must happen in reverse.
In this programming problem, you will create a project and add the following interface:
interface Crypto { string Encrypt(string str); string Decrypt(string str); }
807
The Crypto interface specifies two methods: encrypt and decrypt. The intention of the encrypt method is to accept a string argument and return an encrypted version of that string. The intention of the decrypt method is to accept an encrypted string as its argument and return a decrypted version of that string.
Next, you will write two classes named Cipher1 and Cipher2. Each of these classes must implement the Crypto interface. The Cipher1 class will use a substitution algorithm to encrypt and decrypt strings, and the Cipher2 class will use a different substitution algorithm to encrypt and decrypt s
Do this using C # Visual Studio and Windows forms - no Console.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!