All possible password combinations

ms2134's picture

He has: 393 posts

Joined: May 2008

Members of the Webmasters Forums.

I want to do a few security tests but first need to test a theory i have...

Stage one is for me to create a list of ALL possible password combinations "WITHOUT ENCRYPTION" just..

Letters (captitals & non capitals), Numbers, Symbols and ALL Special Characters...

I need something which i can run which will generate all of ALL COMBINATIONS for passwords.

Something that may allow me to change the total number of characters to put into the equation.

I have a powerful PC and more than likely; i shall have access to a massive network to run the script; program; so that is not an issue.

Can you help?

Regards,
Michael Swan

Greg K's picture

He has: 1,995 posts

Joined: Nov 2003

Based upon just a plain ASCII table, characters starting with the first one after space (ASCII #33) to the highest one (Ascii #255), that gives you 223 possibilities per position.

So you loop though all 223 in the first position, when done you increase the second character by 1 (start with 33), loop though all 223 in the first position again, the increase the second number...

Repeat until you get to first and second one being 255, now start the third position off at 32 and repeat....

With 8 character positions, that is over 6,000,000,000,000,000,000 combinations if you stored all 8 bytes of the characters (assuming for simplicity that even a 1 letter password is stored as 8 bytes (1 char and 7 spaces)), that would be 48 million TERRA bytes of storage required to hold all possibilities.

Not saying it isn't possible, just a huge and LONG undertaking. Good luck!

-Greg

PS, pardon if i messed up some of my math, been up for a really long time...

ms2134's picture

He has: 393 posts

Joined: May 2008

OK.. So maybe i need a bigger hard drive...

I think that 500GB of data will be enough for me to run the test.. I just wanted to make sure i did it correctly.

Any idea on software that will do this?

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Is this a joke?

To continue Greg K's math... there are 31,536,000 seconds in a year (sans-leap year).

6,000,000,000,000,000,000 combinations would require 190258751.9025875 combination attempts per second for one year.

If you had access to a lab of computers that could each test 1,000 combinations per second, you would need 190,259 computers -- for the duration of the year.

Mark Hensler
If there is no answer on Google, then there is no question.

Megan's picture

She has: 11,282 posts

Joined: Jun 1999

Hensler!! Have I seen a ghost??? Good to see you around again Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.