تم الحل ✓
categoryبرمجة وتطوير البرمجيات
schoolبكالوريوس
event_available2026-07-13
السؤال
Transcribed Image Text:
Q4. (Password strength checker) Password strength is a measure of the effectiveness of
a password against guessing or brute-force attacks.
Part a (10 points): Write a program that asks a user to input a password. Using the function
pswdstrengthchecker the strength of the chosen password according the following table is measured and
printed.
Score
1 (Weak)
2 (Medium)
3 (Strong)
Digits Alphabet Uppercase Lowercase
Length
<8
X
X
>8
X
X
X
>8 and <16
4 (very strong)
X
X
X
X
>16
Part b (10 points): if the enterd password is a weak password, the program suggests a randomly strong
password (using the function passwordgenerator).
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.