Tag Info

Hot answers tagged


B in this password means that this encryption uses random salt, than md5(saltWithDash . md5(password)). If you want to check user input with password from database, you need to extract salt from password and combine user password with that salt. Next, compare this two hashes, and if matches, user password is valid. <?php $password = 'password'; ...


Hope this helps someone: This is how mediawiki saves the user password in the database. Please see @Aleksander's answer for more details.


Can you perform a query? UPDATE the_table SET password='UserNeedsToResetPassword'; Now all users' passwords dont work anymore. I choose plain text, because I cant think of a way that sha1($_POST['pass']) results in this ;) (or whatever hash you use)

Only top voted, non community-wiki answers of a minimum length are eligible