Write a program to simulate the authentication process

Assignment Help Computer Engineering
Reference no: EM13322490

Traditional password entry schemes are susceptible to "shoulder surfing" in which an attacker watches an unsuspecting user enter their password or PIN number and uses it later to gain access to the account. One way to combat this problem is with a randomized challenge-response system. In these systems the user enters different information every time, based on a secret in response to a randomly generated challenge. Consider the following scheme, in which the password consists of a five-digit PIN number (00000 to 99999). Each digit is assigned a random number that is 1, 2, or 3. The user enters the random numbers that correspond to their PIN instead of their actual PIN numbers.

For example, consider an actual PIN number of 12345. To authenticate the user would be presented with a screen such as:

PIN: 0 1 2 3 4 5 6 7 8 9
NUM: 3 2 3 1 1 3 2 2 1 3

The user would enter 23113 instead of 12345. This doesn't divulge the password even if an attacker intercepts the entry because 23113 could correspond to other PIN numbers, such as 69440 or 70439. The next time the user logs in, a different sequence of random numbers would be generated, such as:

PIN: 0 1 2 3 4 5 6 7 8 9
NUM: 1 1 2 3 1 2 2 3 3 3

Write a program to simulate the authentication process using this scheme. Store an actual PIN number in your program. The program should use an array to assign random numbers to the digits from 0 to 9. Output the random digits to the screen, input the response from the user, and output whether or not the user's response correctly matches the PIN number.

 

Reference no: EM13322490

Questions Cloud

Explain how many electrons were transfered : A current of 0.600 A is passed through a cell for 5min and 30 s. How much charge (in C) was trasferred? How many electrons were transfered
Find dimension parameters that affect the drag coefficient : The flow is incompressible, but friction and inertia influences the flow pattern. Use dimensional analysis. Find the dimension parameters that affect the drag coefficient.
Organizations have several types of cultures : The following relates to managing groups and teams and the online videos you must view. Organizations have several types of cultures that can grow within them over time
What voltage is present in its secondary coil : The primary coil of a transformer has 100 turns and its secondary coil has 400 turns. If theac voltage applied to the primary coil is 120V
Write a program to simulate the authentication process : The user would enter 23113 instead of 12345. This doesn't divulge the password even if an attacker intercepts the entry because 23113 could correspond to other PIN numbers.
Explain surface complex formation with a weak acid : Why does surface complex formation with a weak acid lead to a relative maximum in the extent of surface complex formation (adsorption) at a pH which is usually near the value of -log acidity constant of the weak acid (pKHA)
Estimate the required stack height for wind speeds : A plant is to be constructed that will emit 3.5 metric tons of hydrogen sulfide per day. One of the design criteria is that the concentration 1 km downwind from the stack must not exceed 120 micrograms/m3.
What is the net force of the coil : A long straight wire carrries a current I1 of 15 A. A rectangular coil with two sides parallel to the straight wire has sides 5 cm, what is the net force of the coil
Strategic management : Text: Strategic Management (10th ed. by Charles W. Hill and Gereth Jones)Assignment Chapter (Strategic Leadership: Managing the Strategy-Making Process for Competitive Advantage)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write proper sequence in design of a video rental database

Write proper sequence in design of a video rental database

  Tcp and udp

UDP and TCP utilize the 1s complement for their checksums. Assume you have the following three 8-bit bytes: 01010101, 01110000, 01001100. Along with the 1s complement schema, how does receiver detect the errors?

  Add items to the arraylist

Add items to the ArrayList, one at a time, based on user typed input. The user will be prompted for the String to be stored in the ArrayList and then hit enter. The user would be able to continue to add items to the ArrayList until they just hit e..

  Find user allowed to purchase particular restricted product

I need to create a simple age calculator to find if a user is allowed to purchase a particular restricted product. I need to model an abstract class to represent generic restricted product and concrete classes to represent alcohol, tobacco, R-rate..

  How to maintain network configuration including ip address

In a Windows 2003 server network discuss several devices as in : repeaters, routers, hubs, and gateways. What are the functions for those devices? At which layer(s) of the OSI model do those devices operate?

  Icmp packets

Involve at least five ICMP packets, and also explain why they would be a problem on the network.

  Difference in a single-cell and a multiple-cell wireless lan

Can someone help with the following questions I have done some research on the internet and found different meanings so I am looking for something different from the internet posting. I know what each of the following devices are however I am look..

  What steps will you take to analyze the problem?

You are working on a new computer game. One of implementation problems you are trying to solve is character path finding. The user should be able to select a character and left-click the mouse at a location to have the character move to that new l..

  Developing the java program

Create a block utilizing a loop which will calculate the number of items which can be purchased on the basis of price of the item and total amount available to spend.

  Design and organize forensics report

When the investigation is complete and facts and findings are captured within your forensics report you should assure that the forensic report is organized in the correct manner and you are prepared for the courtroom testimony. Explain the details..

  Explain the difference between object-oriented programming

define the difference between object-oriented programming and procedural (or structural or processual) programming. What, if anything, does the OO model bring to the table and improve upon what was out there pre-OO.

  Justify the utilization of a particular level

we are learning about Online instant storefronts and the 3 different categories. I am not sure I understand the difference between these. Please help to me identify each and differ between them. Also if you can let me know what potential customer a..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd