WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to encrypt a password like wordpress does? (2 posts)

  1. clinton4
    Member
    Posted 4 years ago #

    Hi,

    I'am trying to make a custom registration, login and lost password page to work beside my wordpress blogg. These pages wil be completely separated from the wordpress script, but the registration data should be stored in the table wp_users. I therefor need to encrypt the password just like the wordpress script nomaly do it. You know, like this -> $P$BXqS.62ig7hebKg4NoNpSw.wjBY6gv1

    So my question is, in which file can i find the encryption function that wordpress uses? Or how can i encrypt the users password so it would be compatible with the wordpress system?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    Look at the wp_hash_password function in WordPress.

    Basically, it uses the PHPass library to hash the password.

Topic Closed

This topic has been closed to new replies.

About this Topic