WordPress.org

Ready to get started?Download WordPress

Forums

check plain password against database (5 posts)

  1. revolution48
    Member
    Posted 5 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
    moderator
    Posted 5 years ago #

    MD5 hash is what is used in the database.

  3. whooami
    Member
    Posted 5 years ago #

    $P$9N57BH8U2F6jYtGP.1oluN9VF63FsI1

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

    see this:

    http://wordpress.org/support/topic/206009?replies=8

  4. revolution48
    Member
    Posted 5 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
    Member
    Posted 5 years ago #

    what is the code?

Topic Closed

This topic has been closed to new replies.

About this Topic