password_get_info

(PHP 5 >= 5.5.0)

password_get_infoReturns information about the given hash

Beschreibung

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.

Parameter-Liste

hash

Ein Hash, der durch password_hash() erzeugt wurde.

R├╝ckgabewerte

Returns an associative array with three elements:

add a note add a note

User Contributed Notes 1 note

up
0
hej at gustav dot tv
17 days ago
<?php
var_dump
(password_get_info($hash));
// Example
array(3) {
  [
"algo"]=>
 
int(1)
  [
"algoName"]=>
 
string(6) "bcrypt"
 
["options"]=>
  array(
1) {
    [
"cost"]=>
   
int(10)
  }
}

?>
To Top