pussySniper
Wed 12th May '04, 12:24pm
Hi, i'm trying to write my script to import users from another forum, i'm having trouble with the password.
I have done this...
included the md5.js file in a php script,
I copied in my script the function which creates the Salt in variable $Salt (taken from one of the files in VB3)
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, as it returned something like
$password = f6cdf703fa4faefd99ab85d25d5f0448
$Salt = G<)
but... then i cut and paste these values in the database (password and salt field) and when i tried to login it gave me 'wrong username or password' error.
what am I doing wrong?
I have done this...
included the md5.js file in a php script,
I copied in my script the function which creates the Salt in variable $Salt (taken from one of the files in VB3)
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, as it returned something like
$password = f6cdf703fa4faefd99ab85d25d5f0448
$Salt = G<)
but... then i cut and paste these values in the database (password and salt field) and when i tried to login it gave me 'wrong username or password' error.
what am I doing wrong?