Cartesian Product Password Combination Generator

I was motivated to fix this up password combination generator after reading yet another poor fellow on Reddit’s /r/bitcoin who had lost his wallet password. Don’t know if this will help him, but hopefully he’ll get his Bitcoins back.

A while back I worked on a computing device artificial intelligence language corpus project for one of the top major mobile phone manufacturers. As part of the job I created a tool to help me create language variations using a Cartesian Product (CROSS JOIN). I’ve ripped the project apart, gutted it, and fashioned it into a password combination generator.

Here’s the basic usage and reason… Many people use password phrases instead of random passwords. They are easier to remember and can actually increase the level of entropy for a password, which makes it more secure. If you’re one of those people, then this utility is for you.

Now, imagine that your password follows this pattern:

  1. Favourite animal
  2. Favourite actor
  3. Favourite ice cream

All of those are strung together something like this:

alligatorbradpittchocolate

If you’re like many people, your favourite things change from time to time. Several months later, you may be wondering if your favourite animal was an ant, alligator or crocodile, and whether you thought Brad Pitt was better than Clint Eastwood, etc. etc.

Oh, and how did you spell Brad Pitt inside the password?

  • bradpitt
  • BradPitt
  • Brad Pitt
  • brad pitt

And was it chocolate or vanilla was it…???

Before you know it, your password combinations are insanely large. From just the very few options above (excluding Clint Eastwood just to make this shorter), those turn out to be like this:

  • antbradpittchocolate
  • antbradpittvanilla
  • antBradPittchocolate
  • antBradPittvanilla
  • antbrad pittchocolate
  • antbrad pittvanilla
  • antBrad Pittchocolate
  • antBrad Pittvanilla
  • alligatorbradpittchocolate
  • alligatorbradpittvanilla
  • alligatorBradPittchocolate
  • alligatorBradPittvanilla
  • alligatorbrad pittchocolate
  • alligatorbrad pittvanilla
  • alligatorBrad Pittchocolate
  • alligatorBrad Pittvanilla
  • crocodilebradpittchocolate
  • crocodilebradpittvanilla
  • crocodileBradPittchocolate
  • crocodileBradPittvanilla
  • crocodilebrad pittchocolate
  • crocodilebrad pittvanilla
  • crocodileBrad Pittchocolate
  • crocodileBrad Pittvanilla

Each of those are different. All 24. From 6 words. And we’ve not even looked at spacing between words, or capitalisation for the animals and ice cream yet… But add in dog, cat, blueberry and cinnamon, and now we’re up to 80… Add in those variations for Clint Eastwood, and it’s 160… And did you add in your favourite number, your age, your birth year, or your birth day at the end? Now we’re up to 640, and we’ve not even done any permutations yet. Was the number first?

The Password Combination Generator creates password list for you to help you crack old passwords that you kind of but not quite remember.

Password Combination Generator

There are 3 basic areas:

  1. Top symbol string
  2. Middle token inputs
  3. Bottom results

For the symbol string, you enter numbers in curly braces starting with 0. So, if your password has 4 elements in it, as described above with the addition of numbers at the end, then your symbol string will be:

{0}{1}{2}{3}

For each of those symbols, you need 1 token input field as you can see in the screenshot above. If you mismatch the number of symbols and inputs, you’ll get an error.

So, simply click the “Add Token Input” button 3 times to add 3 more inputs for a total of 4.

In each of the token inputs, enter the possible values with 1 per line, e.g.:

  • ant
  • alligator
  • crocodile
  • dog
  • cat

Continue adding to each token input. The buttons beside let you copy or duplicate a line or remove an input, etc.

Once you’re done, click the lightning button to generate the password combinations.

You can also add string literals to the symbol string. These never change. So, if you know that you always use an exclamation mark at the start of your password, you can write the above symbol string like this:

!{0}{1}{2}{3}

If you started your password with “my!”, it would be this:

my!{0}{1}{2}{3}

And so on. There’s really nothing you can’t do with that syntax for a password.

At the bottom, the “Current Results (#)” panel will have all your generated password combinations along with a number indicating how many there are. If you generate more than 1 set, you can use the green arrow button to add the Current Results to the “All Results” panel, then create a new set, which you can also add.

The program and source code are available. They require .NET 4.0.

Download Password Combination Generator

Download Password Combination Generator Source Code

The code isn’t commented very well, but there are some links in there to where I got the Cartesian Product code and maybe some other stuff. I just ripped apart the AI language corpus software and hacked it into a password combination generator.

Now, there is no actual password cracking utility in there, but the program will help you create dictionary lists to use in a brute force attack with another utility. If I have time, I may try to write a crypto currency wallet password cracking utility for people that have lost their passwords.

Hopefully this helps someone get back a lost password. If you’ve lost a Bitcoin wallet password, it’s really, really important to get that back.

Cheers,

Ryan

Share

Written by:

276 Posts

View All Posts
Follow Me :

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 thoughts on “Cartesian Product Password Combination Generator

  1. Hey man… I found your site as I was looking for exactly this piece of software but unfortunately the download link is broken.
    Could you fix it please. I would like to check your work. 😉