Announcement

Collapse
No announcement yet.

Md5?

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

  • 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

  • #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 - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #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


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

        Comment


        • #5
          ok thanks
          NXSupport Admin

          Comment


          • #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


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

              My Blog | Twitter

              Comment


              • #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...
                X