check plain password against database (5 posts)

  1. revolution48
    Posted 7 years ago #

    WordPress Version 2.6.2

    I am currently trying to develop a plugin that lets users login to customized posts by merely entering their user password, yet not necessarily their username.

    Now I need to check a plain text password against user_pass in the database.

    As of now I am using a standard installation, having not touched AUTH_KEY, SECURE_AUTH_KEY or LOGGED_IN_KEY.

    For example:
    user_pass contains $P$9N57BH8U2F6jYtGP.1oluN9VF63FsI1 (plaintext: carrot)
    How would I arrive in encrypting "carrot" to the above string?

  2. Samuel B

    Posted 7 years ago #

    MD5 hash is what is used in the database.

  3. whooami
    Posted 7 years ago #


    thats not an md5 hash, thats a salted md5 hash.

    see this:


  4. revolution48
    Posted 7 years ago #

    right, but what's the salt here?

    on a standard installation, not having touched AUTH_KEY, SECURE_AUTH_KEY or LOGGED_IN_KEY i can't help but wonder.

  5. neohunter
    Posted 7 years ago #

    what is the code?

Topic Closed

This topic has been closed to new replies.

About this Topic