Exibir a lista drop-down

Test of password_hash() Esta página está disponível apenas em inglês.

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$jijtcmmLQf25PDTK3M0woewQqpJUkemVtK2CDGcxeWEalwqo/5Qr.',
  ],
  
'php_version' => '7.1.33 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$CEVlGb2ujVs2sLwSbtldsOZeX5W1tIba8l/MUQx.eKfUODVXwq6xu',
  ],
  
'php_version' => '7.1.33 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$W2.lu2uL/vxEUQ6i62RBguK5z8JmA5J4v4OjqJM64Ybx2CxOZJ3cO',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]