[ 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. return: string The hash string of the password param: string $password Plain text user password to hash 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. return: bool False, if the $password does not match the hashed password param: string $password Plaintext user's password param: string $hash Hash of the user's password to check against. since: WP 2.5 |
generate_password($length = 12, $special_chars = true) X-Ref |
Generates a random password drawn from the defined set of characters return: string The random password param: int $length The length of password to generate param: bool $special_chars Whether to include standard special characters since: WP 2.5 |
rand( $min = 0, $max = 0 ) X-Ref |
Generates a random number Not verbatim WordPress, keeps seed value in backpress options. return: int A random number between min and max 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) since: WP 2.6.2 |
Generated: Sat Nov 23 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |