Profile cover photo
Profile photo
Noam Eppel
51 followers
51 followers
About
Posts

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Noam Eppel commented on a post on Blogger.
wp_hash_password()  can be overwritten to increase the strength or change hash algorithm. For example:

<?php
if(!function_exists('wp_hash_password')):
function wp_hash_password($password)
{
    global $wp_hasher;

    if(empty($wp_hasher))
    {
        require_once(ABSPATH . 'wp-includes/class-phpass.php');

         // Default is to add random salt to each password and hash it with 8
         // rounds of the portable MD5 hash from phpass.
        //
        // Change to bcrypt and increase the rounds from 8 to 16 
       
       $wp_hasher = new PasswordHash(16, false);
    }

    return $wp_hasher->HashPassword($password);
}
endif;
?>

Usage: <?php $hashedPassword = wp_hash_password($password); ?>
Add a comment...
Wait while more posts are being loaded