For password security, it is often recommended that users choose passwords that
ID: 3298516 • Letter: F
Question
For password security, it is often recommended that users choose passwords that contain at least two digits, some capital letters, etc. Calculate and compare the available number of passwords when using the following conditions: a) A 6-letter password only consisting of lowercase letters. b) A 6-letter password consisting of lowercase and capital letters, with at least 2 capital letters. c) A 6-letter password consisting of lowercase and capital letters and some digits, with letters. at least 1 capital letter and at least 1 digit.Explanation / Answer
a) There are 26 lowercase letters and 6 letters in the password.
Each letter can be chosen in 26 ways
=> Total number of passwords = 266
b) There are 26 lowercase and 26 capital letters - 52 in all.
The two capital letters can be chosen in 262 ways.
Further the position of the two capital letters in the password can be chosen in 6C2.
Finally the remaining 4 letters can be chosen in 524 ways
=> Total combinations = 6C2 * 262 * 524.
c) There are 10 digits and 62 in all.
The capital letter can be chosen in 26 ways and in 6 places.
Likewise, the digit can be chosen in 10 ways and in 5 remaining places.
The other four letters can come in 624 ways.
Total passwords = 26*6*10*5*624 or 7800*624.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.