[ Index ] |
PHP Cross Reference of BuddyPress |
[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 src/bp-forums/bbpress/bb-includes/backpress/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. param: string $password Plain text user password to hash return: string The hash string of the password since: WP 2.5 |
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. 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 since: WP 2.5 |
generate_password($length = 12, $special_chars = true) X-Ref |
Generates a random password drawn from the defined set of characters param: int $length The length of password to generate param: bool $special_chars Whether to include standard special characters return: string The random password since: WP 2.5 |
rand( $min = 0, $max = 0 ) X-Ref |
Generates a random number Not verbatim WordPress, keeps seed value in backpress options. 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 since: WP 2.6.2 |
Generated: Fri Nov 22 01:00:56 2024 | Cross-referenced by PHPXref 0.7.1 |