Показать выпадающий список

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$WAJBgIsThO.sGifEYqXW.u4VOhGWTv/hk2vS.nOA0dGzVS/o1tT3S',
  ],
  
'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$DLXI/NQ7Co8JYs.C4RqGaOG1hduFFF527bM4G3KiE1n.oqIoDn4Xi',
  ],
  
'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$GrQbT1e7o6V/01C8YqByA.Ap7nrHbqIz1W2ZqrxGjHKwvSIvMMXiu',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]