显示下拉菜单

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$WneCicffcd1HvzgD1.htn.dBRlhvZe6GadVxl8DWQGfAgNl0oC.4q',
  ],
  
'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$Hzvgwau5gcKfiVH5VdogHeftyeXkinZ6ypwCkIQ51ibCpNe1FRXcG',
  ],
  
'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$m00G8VsQSepnyCWsuu1SZuOXVBtoXZSUXDtRZMMkjPxmzVCj0EffW',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]