Author: friedofriedo
Date: Jul 31, 2008 02:33
I have a 32Bit function which calculates some kind of hash using three
secret 32 bit values. The question is how to reverse this or is it
possible to reverse (as i don´t know if this function is based on
something cryptographic algo)?
In my example I defined three SECRET values and generated 60000
plain/crypt pairs as a test system.
Bruteforce attack tooks very long time so how can i reverse such an
algorithm to get SECRET values from generated plain/crypt examples?
here´s a c-example of the algorithm:
unsigned long keycalc(unsigned long myseed)
{
unsigned long sc1,sc2,sc3;
unsigned long hlp;
unsigned short i,j;
sc1 = SECRETVALUE1;
sc2 = SECRETVALUE2;
sc3 = SECRETVALUE3;
|