Password Hash algorithm

Status
Not open for further replies.

BAT_MAN

Member level 5
Joined
Oct 9, 2006
Messages
90
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,845
I have been given the hash algorithm and guess the hash of all password range between 1 to 65537 but how i can guess the password that hash correspond to the correct stored password hash where size of password is maximum 20 charaters.

ULONG Hash(TCHAR *szText)
{
ULONG hash = 17;
TCHAR ch;
int i;
for (i=0; ch=szText; i++)
{
hash += ch * (31*i+1);
hash %= 65537;
}
return hash;
}
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…