I have a password list generator that generates all combinations of a specific character set for a specific length. Naturally, this list is very long, and it takes quite a while to create.
I want to parallelize a process, but ran into an algorithm / math problem.
For example, I want to generate all [az] combinations (26 letters) for a password with a length of 4 characters. The total number of combinations is 26 ^ 4 = 456.976
Parallelize on ex. two processes, I want the process to process the first half and the other to process the second half. 228.488 combinations each.
And now to the question ... The process that should process the second half is hot so that I get from number 228.488 to the combination of letters with which the generator should begin?
I'm looking for a general solution, so if the number of letters or the length of the password is changed, it will still work. Of course, this was decided long ago, perhaps he even has a name. I just donโt know this name, and I canโt use it.
I implement this in C #
Thank.
source
share