PHP password_get_info() Function
PHP 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:
- $hash: a hash created by password_hash() (the function) creates.
Return Value
Returns an associative array with three elements:
- algo: a constant matching the password algorithm.
- algoName: a human-readable algorithm name.
- options: options passed when calling password_hash().