Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.4. We now consider the relation between passwords and key size. For this purpo

ID: 3550933 • Letter: 1

Question

1.4. We now consider the relation between passwords and key size. For this purpose we consider a cryptosystem where the user enters a key in the form of a password.

1. Assume a password consisting of 8 letters, where each letter is encoded by the

ASCII scheme (7 bits per character, i.e., 128 possible characters). What is the

size of the key space which can be constructed by such passwords?

2. What is the corresponding key length in bits?

3. Assume that most users use only the 26 lowercase letters from the alphabet instead of the full 7 bits of the ASCII-encoding. What is the corresponding key

length in bits in this case?

4. At least how many characters are required for a password in order to generate a key length of 128 bits in case of letters consisting of

a. 7-bit characters?

b. 26 lowercase letters from the alphabet?

Explanation / Answer

1. (128)^8 = 2^56 keys

2. key length = #letters * #bits per letter = 8 * 7 = 56 bits

3. key length = #letters * #bits per letter = 8 * ceiling(log(26)) = 8*5 = 40 bits

4.

a) 128/7 characters ~ 18.28 Hence we need atleast 19 characters.

b) 128/ceiling(log(26)) ~ 25.6 Hence we need atleast 26 lowercase letters.


Note: log has base 2.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote