[ Index ] |
PHP Cross Reference of BackPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 141 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file includes/class.passwordhash.php |
WP_Pass:: (4 methods):
hash_password()
check_password()
generate_password()
rand()
hash_password($password) X-Ref |
Create 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. since: WP 2.5 param: string $password Plain text user password to hash return: string The hash string of the password |
check_password($password, $hash, $user_id = '') X-Ref |
Checks the plaintext password against the encrypted Password. Maintains compatibility between old version and the new cookie authentication protocol using PHPass library. The $hash parameter is the encrypted password and the function compares the plain text password when encypted similarly against the already encrypted password to see if they match. For integration with other applications, this function can be overwritten to instead use the other package password checking algorithm. since: WP 2.5 param: string $password Plaintext user's password param: string $hash Hash of the user's password to check against. return: bool False, if the $password does not match the hashed password |
generate_password($length = 12, $special_chars = true) X-Ref |
Generates a random password drawn from the defined set of characters since: WP 2.5 param: int $length The length of password to generate param: bool $special_chars Whether to include standard special characters return: string The random password |
rand( $min = 0, $max = 0 ) X-Ref |
Generates a random number Not verbatim WordPress, keeps seed value in backpress options. since: WP 2.6.2 param: int $min Lower limit for the generated number (optional, default is 0) param: int $max Upper limit for the generated number (optional, default is 4294967295) return: int A random number between min and max |
Generated: Wed Feb 5 01:00:59 2025 | Cross-referenced by PHPXref 0.7.1 |