DS
DS
| hhu |
| nre |
| PHPMailer | PHPMailer - PHP email creation and transport class. |
| phpmailerException | PHPMailer exception handler |
| SMTP | PHPMailer RFC821 SMTP email transport class. |
password_get_info(string $hash) : array
Get information about the password hash. Returns an array of the information that was used to generate the password hash.
array( 'algo' => 1, 'algoName' => 'bcrypt', 'options' => array( 'cost' => 10, ), )
| string | $hash | The password hash to extract info from |
The array of information about the hash.
password_hash(string $password, integer $algo, array $options = array()) : string|false
Hash the password using the specified algorithm
| string | $password | The password to hash |
| integer | $algo | The algorithm to use (Defined by PASSWORD_* constants) |
| array | $options | The options for the algorithm to use |
The hashed password, or false on error.
password_needs_rehash(string $hash, integer $algo, array $options = array()) : boolean
Determine if the password hash needs to be rehashed according to the options provided
If the answer is true, after validating the password using password_verify, rehash it.
| string | $hash | The hash to test |
| integer | $algo | The algorithm used for new password hashes |
| array | $options | The options array passed to password_hash |
True if the password needs to be rehashed.