Check WordPress hashed password with plain password Check WordPress hashed password with plain password wordpress wordpress

Check WordPress hashed password with plain password


you have passed wrong hash value , hash value for 965521425 is $P$BmI5G.LOoEx1iH.naNqVhWnSh5sMp31 and you just need to write below code into your file:

require_once($_SERVER['DOCUMENT_ROOT']."/wp-load.php"); $password = '965521425'; $hash = '$P$BmI5G.LOoEx1iH.naNqVhWnSh5sMp31'; var_dump(wp_check_password($password, $hash));exit;


In your code, you include the wp library and it looks like you redefine a function named wp_check_password but you do not call any function at all. Add the following line before the closing php tag ("?>") and try again.

echo (wp_check_password($password, $hash) ? 'TRUE' : 'FALSE');

Keep an eye on the error logs in case you miss some dependencies.


i would simply do this <?php wp_check_password( $password, $hash, $user_id ) ?> Refer