Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

I am looking for an algorithim to form a dictionary from a specified character set and with a specified length limit

For example

The character set a , bwith length two will have the following dictionary

a,b,aa,bb,ab,ba

 

I want the algorithim to take any character set and max length of a word and form a dictionary from this set

Any ideas?

 

I want to use this algo to generate word lists for brute forcing programs

Life is the biggest school
Posted

No

It's not simple at all

Suppose i want to form a ditionary of (50) characters and of length up to 9

I will need 50 nested loops.

 

Secondly,I want to take from the user characters of the dictionary,which means i cannot use looping.

If I want to use recursion this would be very slow and memory demanding program

I dont know if the word dictionary is the rigth word to describe it.

What i mean by dictionary is all the possible combinations of characters entered by the user.

 

Got the idea?

Life is the biggest school
Posted
No

It's not simple at all

Suppose i want to form a ditionary of (50) characters and of length up to 9

I will need 50 nested loops.

 

Secondly,I want to take from the user characters of the dictionary,which means i cannot use looping.

If I want to use recursion this would be very slow and memory demanding program

I dont know if the word dictionary is the rigth word to describe it.

What i mean by dictionary is all the possible combinations of characters entered by the user.

 

Got the idea?

 

I think what you are looking for are permutations,

here is a link that you might find interesting.

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.   Paste as plain text instead

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