Jump to content

Getting every combination of a String and storing in a db table.


Recommended Posts

What im looking to do is basically get every combination of a string.

 

example:

 

 

$characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!/£$%^&*()+@#?";

 

 

and store each individual result in my database.... so basically i could look in my MYSQL database and look through however million entries there are.

 

note - min length 3. max length 10.

 

anyone help me?

You might want to take a minute to figure out roughly how many combinations that will generate. Saying "however many million" is a gross understatement.

  • 2 weeks later...

this may sound stupid but why would you need to populate your database with this info if you can verify the same using 1 line of code in a regex? or is it for a special redeem code system of some kind

This was just going to be a little project on decrypting Md5 hash's... but first i needed ALOT of different letter combinations (obviously words too...etc), to then transfer into MD5... then obviously to compare with the MD5.

This was just going to be a little project on decrypting Md5 hash's... but first i needed ALOT of different letter combinations (obviously words too...etc), to then transfer into MD5... then obviously to compare with the MD5.

 

Nice ::)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.