1
Answer

Encryption and Decryption Windows form app project

Create a Windows Form App project containing the following elements:

1- PlainTextBox

2- CipherComboBox: This involves the following options (SimpleCipher, Caesar'sRemoval, CasesarCipher, RSA Cipher, Vigenere Cipher, UUID Cipher, and Playfair Cipher)

3- KeyTextBox

4- EncryptedTextBox

5- DecryptedTextBox

6- EncryptButton

7- DecryptButton. Based on the previous form elements and the following scenario, write the code to create the Windows Form App project:

Scenario:

The user types the text to be encrypted in the PlainTextBox, then selects the encryption algorithm type according to which the text will be encrypted from the CipherComboBox. After selecting the text, he enters the encryption key in the KeyTextBox. When the EncryptButton button is clicked, the entered text is encrypted using the selected algorithm and the entered key and assigned to the EncryptedTextBox. Then, if the DecryptButton button is clicked, the text is encrypted using the selected algorithm and the entered key. Take the encrypted text from the EncryptedTextBox, decrypt it using the same algorithm you chose, and assign the re-encrypted text to the DecryptedTextBox.

 

Try to write code that is compatible with the .Net9 version.

Answers (1)