I was wondering what is the difference between these? I was having a discussion with someone about the crypt method and he was talking about the bcrypt method but to me it sounded like they are the same methods.
Thanks
I was wondering what is the difference between these? I was having a discussion with someone about the crypt method and he was talking about the bcrypt method but to me it sounded like they are the same methods.
Thanks
crypt without arguments is the standard UNIX password hashing function ported to PHP whereas bcrypt is based on the Blowfish algorithm.
Bcrypt was designed specifically for hashing passwords.
Read the documentation:
password_hash()
uses strong hash, generates strong salt, applies proper rounds automatically.password_hash()
is simplecrypt()
wrapper and compatible with existing password hashes. Use ofpassword_hash()
is encouraged.
There is no bcript
function in PHP.