WordPress.org

Ready to get started?Download WordPress

Forums

Which wp file contains pwd salting/hashing routine? (4 posts)

  1. rhomelgiant
    Member
    Posted 2 years ago #

    Hello,

    I'm going to have to build small side-app for my WP blog. I will need to use my current WP credentials to log in.

    To check against wp_users table, I need to know how WP processes passwords. Where could I find this? Is there a better approcah (such as using a WP Api?)

    Best.

    rh.

  2. rhomelgiant
    Member
    Posted 2 years ago #

    Is it possible that it's just a md5()?

  3. Martin Lormes
    Member
    Posted 2 years ago #

    I think you should look at wp-includes/pluggable.php:

    WordPress uses PasswordHash::CheckPassword to verify passwords. The library referenced can be found in wp-includes/class-phpass.php or at http://www.openwall.com/phpass/

  4. rhomelgiant
    Member
    Posted 2 years ago #

    Perfect Martin.

    It took me a coule of days to find the time to understand everything, but now everything's perfect!

    Thank you so much.

    You rock!

Topic Closed

This topic has been closed to new replies.

About this Topic