Announcement

Collapse
No announcement yet.

How does vB codes the password?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does vB codes the password?

    Hello,

    I'm trying to integrate Prediction Football with vBulletin.

    I have find where predFoot makes the login query and modify the query to extract the password and user from vB table.

    The problem is that vBulletin coes the password differently. Everybody told be that I have to see how vBulletin check's the password. Well, how does it?

    Code:
        $userquery = "SELECT * FROM user where username = '$username'";
        $userresult = $dbase->query($userquery);
        if ($userline = mysql_fetch_array($userresult, MYSQL_ASSOC)) {
          if ($pwd == $userline["password"] 
           && ($userline["authenticated"] == 'TRUE' || $emailAuthenticate == 'FALSE')) {
            // The passwords are equal. Log the user in, and update the 
            // data.
    This is part of the Prediction League. Can PLEEEEASE somebody point me on how should I do the query in order to login a user? My head is spinning already.

    Thanks.
    GamerPET.com - Honest Game Reviews

    REMEMBER : Life is better with animals.

  • #2
    vBulletin hashes it's password, it doesn't encrypt it.

    The hash method used is: md5 ( md5 ( password ) . salt )
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      Originally posted by Colin F View Post
      vBulletin hashes it's password, it doesn't encrypt it.

      The hash method used is: md5 ( md5 ( password ) . salt )
      I saw that, but what is SALT? Don't I need to specify what is salt in the Pred.Football files?
      GamerPET.com - Honest Game Reviews

      REMEMBER : Life is better with animals.

      Comment


      • #4
        salt is a random three character string which is unique per user. It's stored in the user table.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment


        • #5
          Originally posted by Colin F View Post
          salt is a random three character string which is unique per user. It's stored in the user table.
          Aaaah...now it makes sense

          Thanks. I will try it later.
          GamerPET.com - Honest Game Reviews

          REMEMBER : Life is better with animals.

          Comment

          Loading...
          Working...
          X