Quantcast
Channel: Hashing password and login - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by martinstoeckli for Hashing password and login

The password_verify() function also works with other hash algorithms. The first part $2y (in this case BCrypt) tells the function which algorithm was used to generate the hash, so it can use the same...

View Article



Answer by jeroen for Hashing password and login

All password_verify() needs is the user's password and the hash from the database. You don't need to hash anything yourself again.Instead, you should just use:if(password_verify($password,...

View Article

Hashing password and login

I trying to hash the password while I create new user. This is what I have when user is added:$username = $_POST['username'];$password = $_POST['password'];$options = ['cost' => 11,'salt' =>...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>