I have a problem with the way wordpress encrypts a password, When I encrypt a password I do it in the following way.
$wp_hasher = new PasswordHash(16, true); // 16 digit hashing password
$pass = $wp_hasher->HashPassword( trim( $posted['password'] ) ); //$posted['password'] is your password
echo $pass;
With that code I encrypt a password, for example:
password: test
encrypted: $P$JofHzK55LaG8kpcQsVJ5j0AcnILN2o1
The problem is that this encrypted password is not the same as that stored in Wordpress
The password that is stored in WordPress already encrypted is this:
$P$BhbEVMLV6onULEfYLG3dsF5xuv9t9j0
I do not know how is encrypting the WordPress password