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.
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
Windows Form (Run Time) OpenFileDialog Control (Run Time) Exception Handling (Run Time) Open a Text File Encrypt Text Open Decrypt Text Exit Ongenie Nowder Nam Fenme Sampl Open a Text File Encrypt Text Decrypt Ted Exit Generate Random Encryption Key 28463 Go Text in the Clear Symmetric encryption is a type of encryption where only one key (a secret key) is used to both encrypt and decrypt electronic information. Encrypted Text Uqshwzmitigvgxmuq"qw&d"]} vh"wj&hpkvisvast typixh"wmr]"wrk.fmm &+c(wkftmx&ng-&u(yyhf (xuấtiwan#igvgxl|$g Decrypted Text Symmetric encryption is a type of encryption where only one key (a secret key) is used to both encrypt and decrypt electronic information. Tam Text in the Clear Encrypted Text Sarch Fi Decrypted Ted Tax Generate Random Encryption Key 14201 Go Open E- InputError I Sin OK You Must Select a File. TH Cance
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