Question

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

  1. 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.
    1. Passwords of length 8 with any combination of lowercase letters, uppercase letters,and numbers.
    2. Passwords that start with a capital letter, have 10 lowercase letters, and end with a number.
    3. Passwords that start with a capital letter, have between 10 and 20 lowercase letters,and end with a number.
    4. Passwords that have four words in them, where the words come from a list of 20,000 words.
    5. Passwords using the word ‘password’ with different uses of upper case and lowercase letters, and also allowing for a substitution of a number for the letters such as ‘96553014’; each letter is uniquely represented by a number, e.g., p can be replaced with 9 but with no other number. Basically, we have 3 choices per letter in ‘password’. No reordering allowed.
    6. Which of these schemes would you use for your bank account?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(there are more than 4 parts so as per policy i will answer forst 4 : a,b,c,d)

a.

total options for each unit of the password = 26 lowercase letters + 26 uppercase letters + 10 numbers

= 62

password length = 8

no. of possible passwords = (no. of options per unit)^(length)

= 62^8

= 2.1834011 * 10^14

time to test = (no. of possible passwords) * (time to test each)

= ( 2.1834011 * 10^14 ) * (1 nanosecond)

= 2.1834011 * 10^14 nanoseconds

b.

no. of passwords = (no. of uppercase letters)*[ (no. of lowercase letters)^10 ]*(no. of numbers)

= (26)*[ (26)^10 ]*10

= 3.6703445 * 10^16

no. of passwords = 3.6703445 * 10^16

time to test = (no. of possible passwords) * (time to test each)

= ( 3.6703445 * 10^16 ) * (1 nanosecond)

= 3.6703445 * 10^16 nanoseconds

c.

Passwords that start with a capital letter, have between 10 and 20 lowercase letters,and end with a number.

no. of passwords

= (no. of uppercase letters)*[ (no. of lowercase letters)^10 ]*(no. of numbers) + (no. of uppercase letters)*[ (no. of lowercase letters)^11 ]*(no. of numbers) + ...... + (no. of uppercase letters)*[ (no. of lowercase letters)^20 ]*(no. of numbers)

= (26)*[ (26)^10 ]*10 + (26)*[ (26)^11 ]*10 + (26)*[ (26)^12 ]*10 + (26)*[ (26)^13 ]*10 + (26)*[ (26)^14 ]*10 + (26)*[ (26)^15 ]*10 + (26)*[ (26)^16 ]*10 + (26)*[ (26)^17 ]*10 + (26)*[ (26)^18 ]*10 + (26)*[ (26)^19 ]*10 + (26)*[ (26)^20 ]*10

= 5.3885715 * 10^30

time to test = (no. of possible passwords) * (time to test each)5.3885715* 10^30 * 1 nanosecond

= 5.3885715 * 10^30 nanoseconds

d.

for each unit of the password there are 20,000 options

no. of possible passwords = (20,000)^4

= 1.6 * 10^17

time to test = (no. of possible passwords) * (time to test each)

= (1.6 * 10^17 ) * (1 nanosecond)

= 1.6 * 10^17 nanoseconds

(please UPVOTE)

Add a comment
Know the answer?
Add Answer to:
Compute the number of passwords of each type below along with how long it would taketo...
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
  • 18. At a certain company, passwords must be from 3-5 characters long and composed of the...

    18. At a certain company, passwords must be from 3-5 characters long and composed of the 26 letters of the alphabet, the ten digits 0-9, and the 14 symbols !,@,#,$,%,^,&,*,().-+,{, and ). (As a note, the password does not REQUIRE at least one character of each type. In other words, it is fine if your password doesn't have any digits or is only special symbols.) a. How many passwords are possible if repetition of characters is allowed? [4 points] b....

  • I. How many 5-letter passwords (letters may be repeated) can be created from the monkey type- wri...

    i. How many 5-letter passwords (letters may be repeated) can be created from the monkey type- writer from Q1 if it is forbidden for a password to begin and end with the same letter? Answer: 11. Using the monkey typewriter from Q1, how many 8-letter words are there consisting of 8 distinct letters that contain the word 'APE' (as 3 consecutive) letters within the 8-letter word? Answer: iii. Suppose that a group of 9 inhabitants of the Island of Knights...

  • I have to use java programs using netbeans. this course is introduction to java programming so...

    I have to use java programs using netbeans. this course is introduction to java programming so i have to write it in a simple way using till chapter 6 (arrays) you can use (loops , methods , arrays) You will implement a menu-based system for Hangman Game. Hangman is a popular game that allows one player to choose a word and another player to guess it one letter at a time. Implement your system to perform the following tasks: Design...

  • 1) A: List all possible outcomes (the sample space) for the tree diagram below B: Calculate...

    1) A: List all possible outcomes (the sample space) for the tree diagram below B: Calculate the number of all possible outcomes: bb 2) Based on the tree diagram below, how many ways can a coin be tossed four times and get exactly 3 tails? Hнн HHT HHHH HHHT HHTH H HTT HTHH HTHT HTTH HTTT THH T THT TTHS THHH THHT THTH THTT TTHH ΤΤΗΤ ΤΤΤΗ ΤΤΤΤ ΤΤΤ 3) How many 12-letter "words" (real or made-up) can be made...

  • 1- If four alphabets are to be chosen from L, M, N, O, P, Q such...

    1- If four alphabets are to be chosen from L, M, N, O, P, Q such that repetition is not allowed then in how many ways it can be done? 2- Sally must choose a 5-digit PIN. Each digit can be chosen from 0 to 9 and the same digit can be used repeatedly. How many possible PIN numbers can be created? 3- Jenny has 8 tops, 5 bottoms, 2 belts, and 2 bracelets. Assuming that everything matches, how many...

  • ‘C’ programming language question Write a MENU DRIVEN program to A) Count the number of vowels...

    ‘C’ programming language question Write a MENU DRIVEN program to A) Count the number of vowels in the string B) Count the number of consonants in the string C) Convert the string to uppercase D) Convert the string to lowercase E) Display the current string X) Exit the program The program should start with a user prompt to enter a string, and let them type it in. Then the menu would be displayed. User may enter option in small case...

  • For this lab you will write a Java program that plays a simple Guess The Word...

    For this lab you will write a Java program that plays a simple Guess The Word game. The program will prompt the user to enter the name of a file containing a list of words. These words mustbe stored in an ArrayList, and the program will not know how many words are in the file before it starts putting them in the list. When all of the words have been read from the file, the program randomly chooses one word...

  • Assignment #6 - Arrays and Strings - Making random sentences! Due: Tuesday April 2, 11:59:00 pm...

    Assignment #6 - Arrays and Strings - Making random sentences! Due: Tuesday April 2, 11:59:00 pm Objective This assignment will consist of writing a program that involves practice with arrays, random number generation, and Strings. You may use c-strings or string objects here, however, string objects is recommended. Exercise Filename: sentences.cpp Write a program that uses random-number generation to create sentences. Create four arrays of strings (string objects highly suggested over c-strings) called article, noun, verb, and preposition. The arrays...

  • 1 Overview and Background Many of the assignments in this course will introduce you to topics in ...

    1 Overview and Background Many of the assignments in this course will introduce you to topics in computational biology. You do not need to know anything about biology to do these assignments other than what is contained in the description itself. The objective of each assignment is for you to acquire certain particular skills or knowledge, and the choice of topic is independent of that objective. Sometimes the topics will be related to computational problems in biology, chemistry, or physics,...

  • Assignment Overview This programming assignment is intended to demonstrate your knowledge of the following:  Writing...

    Assignment Overview This programming assignment is intended to demonstrate your knowledge of the following:  Writing a while loop  Writing a for loop  Writing a while loop with a sentinel value Chocolate Coupons Foothill Fro-cho, LLC, gives customers a coupon every time they purchase a chocolate bar. After they earn a certain number of coupons, they qualify for a free chocolate bar, which they may use toward the purchase of a single chocolate bar. Usually, 7 is the...

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