Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top