PDA

View Full Version : what is salt and all


tester987654
04-18-2007, 05:50 AM
Hello,
iam trying to import vb database to my custom CMS,
but i found that passwords not working,
later i realised that its basic vb not storing md5 of passwords but its adding some salt:o to it.

can anyone explain me what is that
and also, now how can i get md5 password of a members, so that i can store that in my user database and people can be logged in happily :)

hoping for a good reply.
thanks.

Dismounted
04-18-2007, 06:16 AM
md5(md5($password . $salt)

$salt is the salt field of the user table. It is different for each user.

tester987654
04-18-2007, 06:28 AM
thanks for the help,
now how can i find md5 password of a user,
so that he can be logged into my other cms after i import user database.

thanks.

WhaLberg
04-18-2007, 12:58 PM
I recommend you to import users via DataManagers. It auto gives user a salt. But if you run your own query, you have to specify it manually.