Please Include Form 1 design and please do it withoutany multiple syntax errors. Please let me know how I should submitthe project according to the specifications of theproblem.
Here is sampleFile.txt - notepad: Symmetric encryptionis a type of encryption where only one key (a secret key) is usedto both encrypt and decrypt electronic information.
1 ISA WNH 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 Public class frmProject2 'Name Kevin McClelland 'Date 6 / 29 / 2022 *CPt 341 VB.NET NJIT SUmmer Semester 2022 Option Strict On DES CryptoService Provider RC2 CryptoService Provider RC2 CryptoService Provider RC2 CryptoService Provider RC2 Crypto AES / Rijndael Managed (Advance Encryptio Standard) ww TripleDESCryptoService Provider System of Imports System.Text.Security.Cryptography Imports. System.Text waxx System.IO is imported. Form 1 of the Public Class System.Windows.Forms.Form is inherited. Form1 Load(ByVal sender As) is a private sub. System.Object, Handles (ByVal e As System.EventArgs) MyBase. Load 'For Me, set default inilizations. 'padding' RadioButton1. Checked = True True 'cypher' was checked by Me. RadioButton5. modes 'Algorithr.Me. RadioButton10. Checked = True Submit Button3 Click(ByVal sender As System) is a private sub. objecte Handles (ByVal e As System.EventArgs) Button3.Click Dim roundtrip As Byte, from Encrypt() As Byte
File: (use any text editor to create some sample text to read and encrypt) General Project Requirements Name 6. 7. Project 2 Sample Text File.txt 1. 2. 3. 4. Use Textbox controls to enter the sample data values and to display the solution 5. Use Label controls Project 2 Sample Text File.txt - Notepad File Edit Format View Help NJIT CPT 341 Visual Basic In the source code, make sure to include your name, class, and date The Windows Form should be easy to understand using appropriate Label and ToolTip controls to help the user navigate through the application (see sample Form and sample video) Comments should be placed throughout your VB code. Variables and control object naming should follow common naming conventions (see common naming conventions handout) Provide an Exit Button on the encryption form to shut down the application Use Error Handling (Try...Catch...Finally) to account for common errors. For example, if a user enters incorrect data types into the sample data textboxes a. Display a message (using a MsgBox) where necessary 8. Use a PictureBox control to display a representative image on the Windows Form 9. Use a ToolTip control to prompt users (for a mouse-over) 10. The clear text message is to be stored in a text file (created using Notepad). The text can also be typed directly into the corresponding textbox control a. The text-file is to be selected using an OpenFileDialog runtime control object (see the Visual Studio Toolbox) b. Text file contents are to be displayed in a Textbox control located on the Windows Form (you can also use this textbox to input clear-text characters) 11. Keys values are to be randomly generated a. Keys are to be randomly generated within a range of 0 to 100,000. Each key digit will need to be added to the corresponding character to shift it to a new character i. Since there are a limited number of digits in a key, your program must 'wrap-back' to the first digit: Example: Using a random key of 2171: N 78 (78 + 2) P Text in the Clear: "NJIT" b. The selected key must be stored in an array 12. Reverse the shifted characters back to their original characters using the same key digit. Character ANSI Code Asc() ANSI Code + Key Value Shifted Character (Chr() I 73 J 74 (74 + 1) (73+7) K P Shifted Text: "PKPU" T 84 (84+1) U
Develop a Windows Forms application that will generate a random key used to shift a string from one character to another. The application must also reverse the shifted characters back to their original characters using the same key. Text is to be entered directly into a textbox or by selecting an existing text file using the OpenFileDialog control. Visual Basic Topics and Control Objects: Random number generation, string manipulation and conversion, file I/O, sequential text file, OpenFileDialog() control object, ANSI character set, Asc() function, Chr() function, SubString() function, Mod operator, Arrays, Looping Sample Windows Form and Controls Windows Form (Design Time) PictureBox Control Button Control Exit Button Open a Text File Encrypt Text Decrypt Text Exit Generate Random Encryption Key Go Text in the Clear Encrypted Text Decrypted Text Label Control Textbox Control
File: (use any text editor to create some sample text to read and encrypt) General Project Requirements Name 6. 7. Project 2 Sample Text File.txt 1. 2. 3. 4. Use Textbox controls to enter the sample data values and to display the solution 5. Use Label controls Project 2 Sample Text File.txt - Notepad File Edit Format View Help NJIT CPT 341 Visual Basic In the source code, make sure to include your name, class, and date The Windows Form should be easy to understand using appropriate Label and ToolTip controls to help the user navigate through the application (see sample Form and sample video) Comments should be placed throughout your VB code. Variables and control object naming should follow common naming conventions (see common naming conventions handout) Provide an Exit Button on the encryption form to shut down the application Use Error Handling (Try...Catch...Finally) to account for common errors. For example, if a user enters incorrect data types into the sample data textboxes a. Display a message (using a MsgBox) where necessary 8. Use a PictureBox control to display a representative image on the Windows Form 9. Use a ToolTip control to prompt users (for a mouse-over) 10. The clear text message is to be stored in a text file (created using Notepad). The text can also be typed directly into the corresponding textbox control a. The text-file is to be selected using an OpenFileDialog runtime control object (see the Visual Studio Toolbox) b. Text file contents are to be displayed in a Textbox control located on the Windows Form (you can also use this textbox to input clear-text characters) 11. Keys values are to be randomly generated a. Keys are to be randomly generated within a range of 0 to 100,000. Each key digit will need to be added to the corresponding character to shift it to a new character i. Since there are a limited number of digits in a key, your program must 'wrap-back' to the first digit: Example: Using a random key of 2171: N 78 (78 + 2) P Text in the Clear: "NJIT" b. The selected key must be stored in an array 12. Reverse the shifted characters back to their original characters using the same key digit. Character ANSI Code Asc() ANSI Code + Key Value Shifted Character (Chr() I 73 J 74 (74 + 1) (73+7) K P Shifted Text: "PKPU" T 84 (84+1) U
Please Include Form 1 design and please do it without any multiple syntax errors. Please let me know how I should submit
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am