Tag Info

Hot answers tagged

2

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'; ...


2

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


1

For HTTP basic authentication using a .htpasswd file, use the auth_basic module in a location block for the protected directory: location /123 { auth_basic "Protected"; auth_basic_user_file /path/to/.htpasswd; }



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