Question: Using Visual Studio and Visual Basic Windows Form App HW8 Decrypt a message Use the stub project. Put your name in form.text The program should
Using Visual Studio and Visual Basic Windows Form App


HW8 Decrypt a message Use the stub project. Put your name in form.text The program should decrypt data.txt, already in the bin\debug folder See the Caesar Cypher and Block Cypher examples for sample code to use. Your program should: 1. Read one line of the message at a time (probably should use FileOpen. Streamreader might cause problems). 2. For each line, subtract the value of each password character from the corresponding value of the message character. That is, you go through the encoded message string, one character at a time, and subtract the password character in the same position. The message strings are shorter than the password string, so the loop should not go out of bounds. 3. Convert the resulting number into a character and append to the output textbox. 4. After processing each line, append ybcrlf to the output box to go to the next line. Milam Aiken's hw8 - decode message password The rain in Spain falls mainly on the plain. decrypt Decrypted message This is MIS 330. How now brown cow? 1 I hope this works. For i = 1 to len(codedmessagestring) (password string is longer than coded message string] Get current password char Get current coded message char Text: The rain in Spain ... ASCII codes: 84 104 101 32 ... Encoded Text: "MUm2@f'- Encdoded ASCII codes: 143 153 111 131 ... Subtract 84 from 143, 104 from 153, 101 from 111, ... Using this new number, convert to a character and append HW8 Decrypt a message Use the stub project. Put your name in form.text The program should decrypt data.txt, already in the bin\debug folder See the Caesar Cypher and Block Cypher examples for sample code to use. Your program should: 1. Read one line of the message at a time (probably should use FileOpen. Streamreader might cause problems). 2. For each line, subtract the value of each password character from the corresponding value of the message character. That is, you go through the encoded message string, one character at a time, and subtract the password character in the same position. The message strings are shorter than the password string, so the loop should not go out of bounds. 3. Convert the resulting number into a character and append to the output textbox. 4. After processing each line, append ybcrlf to the output box to go to the next line. Milam Aiken's hw8 - decode message password The rain in Spain falls mainly on the plain. decrypt Decrypted message This is MIS 330. How now brown cow? 1 I hope this works. For i = 1 to len(codedmessagestring) (password string is longer than coded message string] Get current password char Get current coded message char Text: The rain in Spain ... ASCII codes: 84 104 101 32 ... Encoded Text: "MUm2@f'- Encdoded ASCII codes: 143 153 111 131 ... Subtract 84 from 143, 104 from 153, 101 from 111, ... Using this new number, convert to a character and append
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
