I am working on a brute force program in C ++, which so far only deals with alpha-numeric values (lowercase only) and with an unknown length password.
I work with a quad-core processor, so I split the list of features into four sections and one thread works on each of them.
Sections:
000...0 to 8zz...z 900...0 to hzz...z i00...0 to qzz...z r00...0 to zzz...z
Can I better use streams to increase speed? Since only 1 in 4 threads will ever reach the password, it seems that 3/4 of the program is a waste of time.
It would seem that if I could combine the threads, it would be more efficient, but I can not imagine how to do it.
Any advice is much appreciated, I'm new to streaming.
* EDIT: I must clarify that, since this is a fairly simple program for academic purposes, I actually only crack one password and give a signal to kill the remaining three threads as soon as it finds them. *
Tyler source share