password_get_info

(PHP 5 >= 5.5.0, PHP 7)
Returns information about the given hash
array password_get_info ( string $hash )

When passed in a valid hash created by an algorithm supported by password_hash(), this function will return an array of information about that hash.

Parameters:
hash

A hash created by password_hash().

Returns:

Returns an associative array with three elements:

  • algo, which will match a password algorithm constant
  • algoName, which has the human readable name of the algorithm
  • options, which includes the options provided when calling password_hash()
doc_php
2016-02-24 15:56:11
Comments
Leave a Comment

Please login to continue.