wp_hash_password() – Create a hash (encrypt) of a plain text password.
You appear to be a bot. Output may be restricted
Description
Creates a hash (encrypt) of a plain text password.
For integration with other applications, this function can be overwritten to instead use the other package password checking algorithm.
Usage
$string = wp_hash_password( $password );
Parameters
- $password
- ( string ) required – Plain text user password to hash.
Returns
string The hash string of the password.
Source
File name: wordpress/wp-includes/pluggable.php
Lines:
1 to 11 of 11
function wp_hash_password( $password ) { global $wp_hasher; if ( empty( $wp_hasher ) ) { require_once ABSPATH . WPINC . '/class-phpass.php'; // By default, use the portable hash from phpass. $wp_hasher = new PasswordHash( 8, true ); } return $wp_hasher->HashPassword( trim( $password ) ); }