Md5?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dimava
    Senior Member
    • Jul 2001
    • 518

    Md5?

    does vB3 use MD5 for password encryption? Because the passwords that are in the database don't match what PHP generates for MD5
    NXSupport Admin
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    vB3 uses an algorithm with a random salt and multiple MD5 hashes of the original password.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Dimava
      Senior Member
      • Jul 2001
      • 518

      #3
      ok, I wrote a news script, which allows users to add comments by using their forum login. Where can I get the php code to do the random salts etc. onto the entered password so I can compare the entered password with the one in the database?

      Thanks,

      Dimava
      NXSupport Admin

      Comment

      • MUG
        Senior Member
        • Apr 2002
        • 1191
        • 2.3.0

        #4
        md5(md5($password) . $salt)

        Comment

        • Dimava
          Senior Member
          • Jul 2001
          • 518

          #5
          ok thanks
          NXSupport Admin

          Comment

          • Broncos
            Senior Member
            • Oct 2001
            • 175

            #6
            I have an application that checks people's user/pass combos to make sure they are a member before allowing them to add a review and I have this code:

            PHP Code:
            $result mysql_query("select username, userid from user where username = '$username' and password = md5(md5('$password') . $salt)"); 
            It is coming up with an empty result though? In vB 2 I had this and it worked fine:

            PHP Code:
            $result mysql_query("select username, userid from user where username = '$username' and password = md5('$password')"); 
            Any ideas on how I can check in vb3?



            Originally posted by MUG
            md5(md5($password) . $salt)
            http://www.softballfans.com
            The Ultimate Softball Community
            Forums, Bat/Equipment Reviews, Team Page Hosting and more!

            Comment

            • Scott MacVicar
              Former vBulletin Developer
              • Dec 2000
              • 13286

              #7
              see the query in http://www.vbulletin.com/forum/showp...1&postcount=14
              Scott MacVicar

              My Blog | Twitter

              Comment

              • Broncos
                Senior Member
                • Oct 2001
                • 175

                #8
                That did the trick, much appreciated
                http://www.softballfans.com
                The Ultimate Softball Community
                Forums, Bat/Equipment Reviews, Team Page Hosting and more!

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...