Re: Math Problem - Probability of Password Duplication
- Posted by brian_keene at yahoo.com Oct 22, 2001
- 351 views
CK: Sorry. What I meant was that the passwords needed to be a minimum of 11 chars. & a maximum of 14 chars. NOT that they would need to be 11 OR 14 chars long. So your function looks perfectly fine to me. Thanks! The only question my boss wants to know is how many possible unique passwords can this generate? Is my formula correct or is my math wrong? Which is quite possible! :) Regards Brian Keene --- "C. K. Lester" <cklester at yahoo.com> wrote: > > > Can someone who knows math & probability theory better than me (this isn't > hard to > > do :)!) tell me how to figure out how many possible passwords I can > generate by > > having the following parameters? > > > > Password Length = 11 to 14 characters > > Possible Password Content = each character can be any 1 of 89 different > > characters. > > > > char14 = 89*89*89*89*89*89*89*89*89*89*89*89*89*89 -- (1.95641099e+027) > > char11 = 89*89*89*89*89*89*89*89*89*89*89 -- (2.77517307e+021) > > > > result = char14 - char11 > > My first instinct is that you should probably add these. Your 11-character > passwords are unique from the 14-character passwords. You would also add the > 12- and 13-character length password combinations. > > > Also, could anyone give me a small function that would generate a random > password > > using this character set? > > chars = { "...your valid character set... " } > for t=1 to passwordLength do > password &= chars[rand(length(chars))] > end for > > Something like that... > ck > > > ===== Regards Brian Keene