php - questions about password_hash() -
i have little question password_hash() function, create ramdom salt me? mean don't have specify this:
'salt' => mcrypt_create_iv(22, mcrypt_dev_urandom)
because suppose function creates random , different salt each of password?
another question, if use password_default
in function password_hash in way : password_hash("rasmuslerdorf", password_default)
use password_hash("rasmuslerdorf", password_bcrypt)
?
salt automatically generated, can specify own in options. of php 5.5 default algorithm bcrypt can change on time.
Comments
Post a Comment