Better performance with multi threading?

[RTS]BN+VS*

Well-known member
Joined
Feb 3, 2009
Messages
53
Location
BELGIUM - East Flanders
Programming Experience
1-3
Hey,

I'm creating a password hash recovery tool that uses brute force. I have the brute force algorithm run in a background worker. It all works, but some similar apps I tried out have performance ~100x bigger then my app. (mine does 50k keys/second, some others do 5m keys/second or more.)

I realize this is partly caused by using a .Net language, but I suspect there are ways to significantly speed up the brute force. A lot of ppl say I should use multi threading, but how is this done in practice? Splitting up the passwords to check would slow down my app I think.

Can anyone help me out on how to improve performance?

Thnx in advance :)
 
Well for multithreading you can simply use the BackgroundWorker for this, any code in it's DoWork event will run on a separate thread.

As for the splitting of the passwords to branch to multiple threads, that depends on how you're generating the passwords in the first place I guess.
 
Back
Top