Question: Write a limited C # program that prompts a user to provide their username and password. Assume usernames and passwords are alphanumeric with a length

Write a limited C # program that prompts a user to provide their username and password. Assume usernames and passwords are alphanumeric with a length of 8.

Provide a first level of obfuscation by converting each character in the username to an array of 8 integers representing the ASCII values for each alphanumeric value in the username. Do the same to the password. Then multiply each value in the array by its position in the array (from 1 to 8). Print the arrays to view the values and verify their lack of readability. Decrypt the arrays, by reversing the process, ie, dividing each array element by its position (from 1 to 8) in the array. Then convert the values in the array elements back to readable text and print them.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!