I'm using php for visual studio, I was creating a sign-up form. When I was about to use the password_hash
build-in PHP function, it showed me the following comment:
But when executing the function it works fine.
There is no information what so ever about it being deprecated in the PHP manual.
(PHP 5 >= 5.5.0, PHP 7)
password_hash — Creates a password hash
Am I missing something?
This seems like a misreading of the password_hash() documentation, which states:
Warning The salt option has been deprecated as of PHP 7.0.0. It is now preferred to simply use the salt that is generated by default.
and
Caution It is strongly recommended that you do not generate your own salt for this function. It will create a secure salt automatically for you if you do not specify one.
As noted above, providing the salt option in PHP 7.0 will generate a deprecation warning. Support for providing a salt manually may be removed in a future PHP release.
Rest assured, password_hash()
isn't deprecated (at the time of writing this).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With