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?