Why does PHP have 2 password hashing functions?
I've been doing some reading on password hashing lately, and I've found
that PHP has 2 password hashing funcitons: password_hash() and crypt()
crypt() looks more versatile and configurable and is what I personally
use, but I've read that password_hash() is better even though it only
takes 2 arguments and only uses 1 algorithm.
Can someone please inform me of any major differences between these 2
functions, or if one is more secure than the other when used correctly? If
there's no real difference, then can someone explain to me why there are 2
functions that appear to do the same thing, only one is better at it?
No comments:
Post a Comment