• Hey guys, I’m trying to change the wordpress password hashing method into Whirlpool.

    I’ve tried adding these into functions.php:

    if(!function_exists('wp_hash_password')):
    function wp_hash_password($password){
     return hash('whirlpool', $password);
    }
    endif;
    
    if(!function_exists('wp_check_password')):
    function wp_check_password($password, $hash, $user_id = '') {
        // You might want to apply the check_password filter here
        return wp_hash_password($password) == $hash;
    }
    endif;

    However wordpress still hashes the password the same way it was hashing it before. (I tested using this: <?php wp_hash_password(“password”); ?> and i get this: ‘$P$Bx7UFpGB4z85l/kIWF.ix7EriKJaKy1’)

    Can you help me?

Viewing 1 replies (of 1 total)
  • John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    The functions.php file in your theme loads too late to override the functions found in wp-includes/pluggable.php. You need to put these functions into a plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘How can I change wordpress's password hash method?’ is closed to new replies.