I asked a question about password security yesterday ...
I'm new to security ...
I use mysql db, and there I need to store user passwords. I was told in the responses that hashingTHEN saving the HASHED password value is the right way to do this.
So basically I want to check with you guys, this is right now.
This is a website for announcements, and for each category that it places, he must enter a password so that he can subsequently remove the secret code using this password (for example, when the product is sold).
In a file called " put_ad.php", I use a method $_POSTto get the passage from the form. Then I use it and put it in the mysql table. Then, when users want to delete the ad, I check the entered password by hashing it and comparing the hashed value of the entered password with the hashed value in mysql db, right?
BUT, what if, as an administrator, I want to remove the classified one, is there a way to “unleash” the password easily?
sha1 is currently used by btw.
some code is much appreciated.
thank
user188962
source
share