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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -