Math question

Just starting out? Need help? Post your questions and find answers here.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Math question

Post by MachineCode »

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! :oops:
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Math question

Post by Demivec »

26 ^ 20
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Math question

Post by skywalk »

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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Math question

Post by Rook Zimbabwe »

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...

:mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Math question

Post by MachineCode »

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? :shock:

[Edit] I'll just use the term "gazillions" (http://www.thefreedictionary.com/gazillions). :wink:
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Math question

Post by Rook Zimbabwe »

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!!! :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Barney
User
User
Posts: 54
Joined: Wed Apr 26, 2006 12:01 pm

Re: Math question

Post by Barney »

I reckon these guys probably know best:

http://www.oxforddictionaries.com/page/93

Barney
Post Reply