Question

In: Statistics and Probability

A hacker has programmed their computer to generate, uniformly at random, an eight-character password, with each...

A hacker has programmed their computer to generate, uniformly at random, an eight-character password, with each character being either one of 26 lower-case letters (a-z), one of 26 upper-case letters (A-Z) or one of 10 integers (0-9). The hacker wants to infiltrate a website that has 2 million users. Assume, for simplicity, that each user is required to use a unique password.

What is the expected number of attempts before the hacker successfully generates a user password?

What is the standard deviation of the number of attempts before the hacker successfully generates a user password? Suppose the website used passwords of length four (instead of eight characters).

What are the expected value and standard deviation of the number of attempts before the hacker successfully generates a user password?

Comment on the security differences between eight- and four-character passwords.

Solutions

Expert Solution

(a)

Number of passwords the hacker can generate = (26 + 26 + 10)^8 = 62^8

Probability of generating a user password = 2000000/(62^8) = 9.16 * 10^-9

Let x = number of trials to generate a user password. Then x follows a geometric progression with p = 9.16 * 10^-9

Expected number of trials before the hacker generates a user password = 1/p = 1.092 * 10^8

Standard deviation of the number of trials before the hacker generates a user password = (√(1 – p))/p

= (√(1 – 9.16 * 10^-9))/(9.16 * 10^-9) = 1.092 * 10^8

(b)

Number of passwords the hacker can generate = (26 + 26 + 10)^4 = 62^4

Probability of generating a user password = 2000000/(62^4) = 0.13535

Let x = number of trials to generate a user password. Then x follows a geometric progression with p = 0.13535

Expected number of trials before the hacker generates a user password = 1/p = 7388168

Standard deviation of the number of trials before the hacker generates a user password = (√(1 – p))/p

= (√(1 – 0.13535))/0.13535 = 6.87

(c)

As we can see, it takes much less trials to hack a 4-character password than an 8-character password.


Related Solutions

A password is a string of ten characters, where each character is a lowercase letter, a...
A password is a string of ten characters, where each character is a lowercase letter, a digit, or one of the eight special characters !, @, #, $, %, &, (, and ). A password is called awesome, if it contains at least one digit or at least one special character. Determine the number of awesome passwords.
A computer is programmed to produce at random a single digit from the list 0, 1,...
A computer is programmed to produce at random a single digit from the list 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. The program is run 8 times. Let Y be the number zeros that occur.i) If Yfollows the Binomial Distributions, state two assumptions for this. i)Calculate the values of theparameters. ii)Calculate P(Y<4)
A computer is programmed to produce at random a single digit from the list 0, 1,...
A computer is programmed to produce at random a single digit from the list 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. The program is run 8 times. Let Y be the number zeros that occur. i) If Y follows the Binomial Distributions, state two assumptions for this.        ii) Calculate the values of the parameters.            iii) Calculate P(Y<4)              b) A batch of capsules of a certain drug contains 4% of damaged capsules. A bottle contains 42 of...
A password is a sequence of five characters. Each character is one of twenty-six uppercase letters...
A password is a sequence of five characters. Each character is one of twenty-six uppercase letters (“A” through “Z”), one of ten digits (“0” through “9”), or one of five symbols (“+”, “-”, “!”, “<”, “>”). Count the number of possible passwords that can be created in each of the following scenarios. Consider each part of this questions separately. (a) There are no restrictions on how the characters are chosen. (b) A password must begin with a letter and end...
JAVA MASTERMIND The computer will randomly select a four-character mastercode. Each character represents the first letter...
JAVA MASTERMIND The computer will randomly select a four-character mastercode. Each character represents the first letter of a color from the valid color set. Our valid color choices will be: (R)ed, (G)reen, (B)lue and (Y)ellow. Any four-character combination from the valid color set could become the mastercode. For example, a valid mastercode might be: RGBB or YYYR. The game begins with the computer randomly selecting a mastercode. The user is then given up to 6 tries to guess the mastercode....
Generate 2500 random numbers that are uniformly distributed between 90 and 160. Prove experimentally that STD...
Generate 2500 random numbers that are uniformly distributed between 90 and 160. Prove experimentally that STD of sample means = STD of Population/sqrt(sample size) for sample sizes of 10 and 100. How close is your calculation of STD of sample means to the theoretical approximation? Keep number of samples in each case equal to sample size. Repeat for normal and weibull (also between 90 and 160). What does it say about STD of sample means as you increase your sample...
A computer random number generator was used to generate 950 random digits from 0 to 9....
A computer random number generator was used to generate 950 random digits from 0 to 9. The observed frequencies of the digits are given in the table below. 0 1 2 3 4 5 6 7 8 9 88 82 97 84 87 87 95 93 90 147 Using a 0.05significance level, test the claim that all of the digits are equally likely. (a) Find the rejection region. Reject H0 if χ2> (b) Find the test statistic. (Round your final...
A computer was used to generate ten random numbers from a normal distribution with a set...
A computer was used to generate ten random numbers from a normal distribution with a set of unknown mean and variance: −1.1623, 0.2210, 1.6518, −1.1312, −0.2879, −1.0458, 1.3706, −0.7492, −0.1355, −1.2686. Eight more random normal numbers with the same variance perhaps a different mean were then generated (the mean may or may not actually be different): 0.3472, 2.2437, 1.0712, 2.5906, 0.5163, −1.1743, 0.0473, −0.8338. (a) What do you think the means of the random normal number generators were? What do...
A computer random number generator was used to generate 550 random digits (0,1,...,9). The observed frequences...
A computer random number generator was used to generate 550 random digits (0,1,...,9). The observed frequences of the digits are given in the table below. 0 1 2 3 4 5 6 7 8 9 58 55 45 50 53 50 57 57 46 79 Test the claim that all the outcomes are equally likely using the significance level ?=0.05. The expected frequency of each outcome is E= The test statistic is ?2= The p-value is Is there sufficient evidence...
A computer random number generator was used to generate 750 random digits (0,1,...,9). The observed frequences...
A computer random number generator was used to generate 750 random digits (0,1,...,9). The observed frequences of the digits are given in the table below. 0 1 2 3 4 5 6 7 8 9 81 62 74 82 76 75 70 66 80 84 Test the claim that all the outcomes are equally likely using the significance level α=0.05α=0.05. The expected frequency of each outcome is E= The test statistic is χ2= The p-value is Is there sufficient evidence...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT