Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C# in Visual Studio... The KLM Corporation uses a unique encryption method in which they store important passwords in their district headquarters. The passwords

Using C# in Visual Studio...

The KLM Corporation uses a unique encryption method in which they store important passwords in their district headquarters. The passwords are changed each week. The password encryption goes through two levels. The first level has its own encryption, but you have been tasked to create the second level of encryption. The first level of encryption has created an input file of numbers that represent the password, but have been altered in some way (you will never know the algorithm used to create the first level of encryption), but you are tasked to create the next level of encryption by first generating a random number between 1 and 100. This random number will be the first value displayed in the listbox. You will then generate another random number between 1 and 1000. Store this second generated number as the second value in the listbox. Now you are ready to begin encrypting the values in the input file. The input file name is PassEnc1Week8.txt and can be found in the current directory. For each value in the input file: 1) Read in a value from the input file and multiply it by the first randomly generated number. 2) Divide this calculated value by the second randomly generated number and display the remainder into the listbox.

Do these steps for each value in the input file until the end of file. Since the passwords change each week, the length of each password will vary and the number of passwords each week will vary. Once a value from the input file has gone through the second level of encryption, you will then write the encrypted number to the output file named PassEnc2Week8.txt and store this file into the project's current directory. (bin/debug folder) An example of one scenario: The first randomly generated number: 62. The second randomly generated number: 294 The contents of the PassEnc1Week8.txt file are:

123456 987654 741852 369258 159 753 84 201 200 8888

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions