here is a situation: i want to choose a security code that consists of 7 letters out of {ABCDE} what is the likelihood that my security code will be hacked
consider that a hacker knows about probability and made a program that runs all the possibilities or such!!
You can only choose one security code (presumably) so you know the probability/likelihood is \(\dfrac{1}{\text{total possible codes}}\). You have 5 letters to choose from for any given slot, with 7 slots. Refer to the \(m\times n\) counting rule.
hmm so the probability here is 1/5^7?
Correct
hmm doesn't that mean the hacker has very little chance to decode the security code lol
Yes it's highly unlikely. That's why most passwords have to satisfy a required length of characters.
hmm makes sense^_^
Join our real-time social learning platform and learn together with your friends!