Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP password_get_info() Function

PHP password_get_info() Function

PHP Password Hashing AlgorithmsPHP Password Hashing Algorithm

The password_get_info() function returns information about the specified hash.

PHP version requirement: PHP 5 >= 5.5.0, PHP 7

Syntax



array password_get_info ( string $hash )

Parameter Description:

Return Value

Returns an associative array with three elements:

Example

Example

11 ] ) ; // view information print_r ( password_get_info ( $password_hash ) ) ; Output result: ``` Array ( [algo] => 1 [algoName] => bcrypt [options] => Array ( [cost] => 11 ) ) ``` [![PHP Password Hashing Algorithm](https://www.runoob.com/images/up.gif)PHP Password Hashing Algorithm](/php/php-variable-handling-functions.html#password_hash)