Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Logics For Databases And Information Systems

Authors: Jan Chomicki ,Gunter Saake

1st Edition

1461375827, 978-1461375821

More Books

Students also viewed these Databases questions

Question

What is topology? Explain with examples

Answered: 1 week ago