How to hash password correctly in PHP? 05-29-2017, 10:10 PM
#1
Hey, I am working on an authentication system, and therefor I find the need to hash the passwords like one should do.
So what I am wondering, how would one go about hashing a password in PHP. I guess there are multiple methods. The tutorial I am using is currently using
Thanks ^.^
So what I am wondering, how would one go about hashing a password in PHP. I guess there are multiple methods. The tutorial I am using is currently using
Code:
password_hash($password, PASSWORD_DEFAULT);Thanks ^.^









![[+]](https://sinister.li/images/modern/collapse_collapsed.png)






![[Image: 9H83e18.png]](https://i.imgur.com/9H83e18.png)

![[Image: tm06mQ3.gif]](http://i.imgur.com/tm06mQ3.gif)