I see noone can help... give more hints maybe!
I have done this...
included the md5.js file in my script,
I copied in my script the function which creates the Salt in variable $Salt
took the password from a user which was 'hello' (it wasnt really but lets pretend)
>$oldPassword = 'hello'
I then did
>$password = md5 ($oldPassword . Salt);
This actually seems to work, it returned something like
$password = f6cdf703fa4faefd99ab85d25d5f0448
$Salt = G<)
but, then i cut and paste these values in the database (password and salt field) wnd when i tried to login it gave me 'wrong username or password' error.
what am I doing wrong?
|