Question



2. You are making a new account on your favorite social media website. This great new website offers the most fun way to steal all of your personal information! Long story short, you need a new password. ords can include upper-case letters, lower-case letters, numbers and the symbols you can r. Characters may be repeated. Please do not simplify your answers. get by holding Shift + a numbe (a) Suppose you want to make a 7, 8 or 9-character long password. How many such passwords are there? (b) Now suppose you want to generate a password of length n that includes exactly one symbol and one n umber. Find an expression in terms of n for the number of such passwords. (c) Suppose you want to make a 9-character password, and passwords must contain upper- case letter and at least one number. How many such passwords are there? (d) A passwords entropy can be calculated as the log2 of the number of characters in the character set used, multiplied by the number of characters in the password itself. How many bits of entropy does a 9-character password have, if it may be chosen from the set of upper-case letters, lower-case letters, numbers and symbols (Shift +number)?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

With all the upper-case and lower-case alphabets, numbers, and characters with shift+number, there are 26+26+10+10 = 72 choices for each character. This will be important for calculations.

(a) There are 72^7, 72^8, 72^9 passwords for length 7,8,9 respectively, as any character can be used and repetitions are allowed.

(b) First choose the position for the symbol, and then the number. For the other positions, there are 52 choices, for these two positions, there are 10 choices each. Thus, the answer is 100 * 52^{n-2} .

(c) Count the passwords with no upper-case letter and no number. As there are 36 choices for each positions, there are 36^9 many of them. Now count the ones with no upper-case letters. This will be 46^9 . Now the ones with no numbers. This will be 62^9 . Now by the exclusion inclusion principle, there are 46^9 + 62^9 - 36^9 passwords which either don't have a number or an upper-case letter. Thus, there are 72^9 - 46^9 - 62^9 + 36^9 passwords with at least one upper-case letter and one number, by taking the complement.

(d) The set of characters has size 72 thus the entropy for a 9 character password is 9 * \log_272 = 55.53 .

Comment in case of any doubts.

Add a comment
Know the answer?
Add Answer to:
2. You are making a new account on your favorite social media website. This great new...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A system requires passwords be made up of upper and lower case letters, digits, and punctuation...

    A system requires passwords be made up of upper and lower case letters, digits, and punctuation symbols. How many bits of entropy are in a 6 character password? A 12 character password? Suppose your password is three 6-character words, made up of only lowercase letters. How much entropy is in such a password???

  • 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. i. What is the expected number of attempts before the hacker successfully generates a user password? ii. What...

  • If the password can contain upper/lower case letters, digits, or any of eight special symbols: (Note:...

    If the password can contain upper/lower case letters, digits, or any of eight special symbols: (Note: leave answers in exponent or simplified factorial form) How many different 8-character passwords are possible if characters cannot be repeated?

  • A password is required to be 12 to 16 characters in length. Characters can be digits (0-9), upper...

    discrete math. pls provide a clear explanation. thanks A password is required to be 12 to 16 characters in length. Characters can be digits (0-9), upper or lower-case letters (A-Z, a-z) or special characters. There are 10 permitted special characters. There is an additional rule that not all characters can be letters (i.e. there has to be at least one digit or one special character) ow many permitted passwords are there? Give your answer in un evaluated/un·simplified form and explain...

  • A computer system uses passwords that contain exactly 4 characters, and each character is 1 of...

    A computer system uses passwords that contain exactly 4 characters, and each character is 1 of the 3 lowercase letters (a, b, c) or 3 upper case letters (A, B, C) or the 5 odd digits (1, 3, 5, 7, 9). Let Ω denote the set of all possible passwords, and let A and B denote the events that consist of passwords with only letters or only integers, respectively. Determine the probability that a password contains only numbers given that...

  • Please help with writing this code. The language is C++. I'm using vim. Thanks Problem Statement...

    Please help with writing this code. The language is C++. I'm using vim. Thanks Problem Statement A good password has many requirements. Humans have a hard time meeting these requirements left to their own devices. You are tasked with creating a program that will generate a password based on what the user wants in the password The user should be able to choose if they want a password with: letters upper case "lower case *numbers The user should also provide...

  • Suppose that you open an email account and you are told that you need six-character password...

    Suppose that you open an email account and you are told that you need six-character password & the characters must be alpha-numeric ( either alphabetical or numerical). Assume that a lower case letter is different from an upper case one. a) How many passwords are possible? Give the exact answer and do not use scientific notation. Show some work. b) Suppose a computer hacker tries to guess what your password is by testing all possible passwords and it takes his...

  • Write a java program. I was given the following case. Your boss has determined that employee...

    Write a java program. I was given the following case. Your boss has determined that employee passwords need to be updated and made stronger. The new password policy has the following requirements At least 8 characters in length. Must contain at least one upper case character . Must contain at least one lower case character Must contain one number character Must contain one of the following characters: @,#,%,^,&,* After a couple of weeks, your boss wants to know if all...

  • Fully explain your answers for all questions. Q1. A password must have exactly ten symbols, each...

    Fully explain your answers for all questions. Q1. A password must have exactly ten symbols, each symbol being one of the 26 lower case letters or one of the five special symbols as follows: *, &, %, $, #. (You can leave your answer as a mathematical expression rather than a number ). (a) How many such passwords are possible in total? (b) How many passwords are such that all their symbols are distinct? (c) How many passwords use only...

  • Compute the number of passwords of each type below along with how long it would taketo...

    Compute the number of passwords of each type below along with how long it would taketo test all possible such passwords if it takes 1 nanosecond to test a password. Report the times in the most convenient human understandable form. In all of these, unless noted otherwise, order matters and repetition of characters is allowed. Passwords of length 8 with any combination of lowercase letters, uppercase letters,and numbers. Passwords that start with a capital letter, have 10 lowercase letters, and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT