Do you think the password_hash() is the most secure way to encrypt a password before storing it in a database? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Do you think the password_hash() is the most secure way to encrypt a password before storing it in a database?

Or do you prefer something else like md5, sha1 or crypt?

6th Jun 2020, 7:59 AM
Piotr Kraj
Piotr Kraj - avatar
1 Answer
+ 1
If I'm not mistaken md5, sha1 algorithms have been deemed unsafe due to cryptographic collisions.
6th Jun 2020, 8:43 AM
Jay W