
Math question
-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Math question
If I generate a 20-character password made up of only the letters A through Z, how many combinations of passwords will there be? Is it (20*26)^20, or what? These things always confuse me! 

Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: Math question
26 ^ 20
Re: Math question
Also depends if you allow repeats or case sensitive(replace 26 with 52).
2 non-repeating char = 26 * 25 = 650
3 non-repeating char = 26 * 25 * 24 = 15600
repeating char = (nchars) ^ password length = 26 ^ 20 ~= 2e28 passwords.
2 non-repeating char = 26 * 25 = 650
3 non-repeating char = 26 * 25 * 24 = 15600
repeating char = (nchars) ^ password length = 26 ^ 20 ~= 2e28 passwords.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: Math question
2+2 = 5
(for higher values of 2)
26*26*20=13,250
13,250*26*26*20=180,000,000+
non case sensitive only CAPS so... adding lower case and numbers 0-9 you can have every word in the dictionary... spelled and mispelled andmiscapped and nums for L3tt3r5 etc... you have more possible combos than I want to try to conceptualize...

(for higher values of 2)
26*26*20=13,250
13,250*26*26*20=180,000,000+
non case sensitive only CAPS so... adding lower case and numbers 0-9 you can have every word in the dictionary... spelled and mispelled andmiscapped and nums for L3tt3r5 etc... you have more possible combos than I want to try to conceptualize...

-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: Math question
Any of the A-Z letters can repeat, and they're all lower-case. So, it looks like it's what Demivec said: 26^20 = 19,928,148,895,209,409,152,340,197,376 combinations? How is that number even expressed in words to a layman? 
[Edit] I'll just use the term "gazillions" (http://www.thefreedictionary.com/gazillions).

[Edit] I'll just use the term "gazillions" (http://www.thefreedictionary.com/gazillions).

Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: Math question
once you exceed 1,009,614 you have exceeded the number of words in the english language... if you add maybe 1,490,000 to that you have all possible mispellings and adding 1,000,000 to that adds in all possible letterreplacedbynumber variations at best!!! 
