Khaledinho Posted July 6, 2005 Posted July 6, 2005 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 Quote Life is the biggest school
samsmithnz Posted July 6, 2005 Posted July 6, 2005 Just use some recursive functions or loops. It's very simple stuff. But why would you want to generate word lists? Why not just iteriate through the alphabet. It seems like you're wasting a step building a list first. Quote Thanks Sam http://www.samsmith.co.nz
Khaledinho Posted July 6, 2005 Author Posted July 6, 2005 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? Quote Life is the biggest school
fenris Posted July 7, 2005 Posted July 7, 2005 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. Quote
Khaledinho Posted July 9, 2005 Author Posted July 9, 2005 Thanks very much This is the algorithim I as looking for Quote Life is the biggest school
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.