Display the drop-down list

Test of password_hash()

Example #1 : test not validated (platform dependant or random result etc.)
Example #2 : test not validated (platform dependant or random result etc.)
Example #3 : test not validated (platform dependant or random result etc.)
Example #1
$input = [
  
=> 'rasmuslerdorf',
  
=> 'PASSWORD_DEFAULT',
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => '$2y$10$Ei39nY/TVBBCsq5u1fbNsO8Ipdpn17zdXXL2SstKuP6CcdnMrdWwy',
  ],
  
'php_version' => '7.1.26 Linux x86_64',
]
Example #2
$input = [
  
=> 'rasmuslerdorf',
  
=> 'PASSWORD_BCRYPT',
  
=> [
    
'cost' => 12,
  ],
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => '$2y$12$ihbxCKR2eCvQRSppAISHduzxsNrxypXVp56d4mNc8wcolQsOVJIOm',
  ],
  
'php_version' => '7.1.26 Linux x86_64',
]
Example #3
$input = [
  
=> 'test',
  
=> 'PASSWORD_BCRYPT',
  
=> [
    
'cost' => 8,
  ],
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => '$2y$08$jTqMI6dPjvTyXPjhjWXvNecKA.pvX3QOlD/n8CyajlCQ0T2chFhAC',
  ],
  
'php_version' => '7.1.26 Linux x86_64',
]