Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Quesiton Put yourself in the shoes of a developer trying to implement encryption. Write a limited C # program that prompts a user to

C# Quesiton

Put yourself in the shoes of a developer trying to implement encryption.

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_2

Step: 3

blur-text-image_3

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions