Answer:
5 hr. 33 min. 20 sec.
Explanation:
Let P₁ be the number of possible passwords Alice can choose
Let P₂ be the number of possible passwords Bob can choose
In a 4 digit password, since the passwords are made up of 10 digits from 0 to 9, therefore the user can choose:
P₁ = 10⁴ = 10000
P₂ = 10⁴ = 10000
The total number of possible passwords combinations that both Alice and Bob can choose is therefore P₁ + P₂ = 10000 + 10000 = 20000.
If Eve performs an online attack and is able to guess 1 password per second.
Eve is therefore able to crack both Alice's and Bob's accounts in:
1 × 20000 = 20000 seconds
Converting 20000 seconds to hours, minutes and seconds will give 5 hr. 33 min. 20 sec.
Eve is able to crack both Alice's and Bob's accounts in 5 hr. 33 min. 20 sec.