|
|
|
When using mod_auth_mysql with encrypted passwords (encrypted with the encrypt()
function) you want to be able to let users change their own passwords. For this, you must be
able to ask the user for the old pass and compare it to the encrypted string in the db. From a
first glance, it seems that each time you encrypt() the password you get a different string so
how can you know that this is the password?
The correct way to do this is by taking the first two characters from the encrypted string in the
database and the password the user sent to your script and encrypt them again like this :
Encrypted string in the database : dX8OQBwAA2TOs
Password : MyPass
To confirm do : encrypt('MyPass','dX')
The result will be dX8OQBwAA2TOs.
So if, encrypt('MyPass','dX') == "dX8OQBwAA2TOs" than the user entered the correct pass.
berber
|
|
| Full membership authentication system. Categories : Authentication, MySQL, PHP, Databases | | | complete, simple, working example of a login screen/system using php functions, cookies, and a mysql database for begginers. Categories : Authentication, Complete Programs, PHP, MySQL, Databases | | | Using .htaccess files to authenticate with .htpassword files and with MySql
(Works with Apache) Categories : Authentication, MySQL, Apache, Databases, Web Servers | | | bookmarker - PHP, PHPLIB, MySQL WWW based bookmark manager Categories : MySQL, PHP, MySQL, Complete Programs, Databases | | | Authorize Me! An authentication script. Categories : MySQL, Databases, Authentication, PHP | | | This program allows you to upload an ODBC ressource - i.e. an MS-Access database to a MySQL server. Categories : Databases, MySQL, Complete Programs, PHP, Databases | | | Implementing a "Members ONLY" area Categories : PHP, MySQL, Databases, Authentication | | | SQL / PHP based Integrated Authentication Categories : PHP, Authentication, Databases, MySQL | | | mod_auth_mysql - mod_auth_mysql was written in order to
allow users to use the blazing quick speed of MySQL in
order to store authentication information for their apache
web servers. Categories : Authentication, MySQL, Databases | | | PHP4 AND MySQL Authentication Categories : PHP, MySQL, Authentication, Databases | | | MySQL wrapper class (PHP 5+ only) Categories : MySQL, Databases, Classes and Objects, Object Oriented | | | Displaying records of database in more than one page (paging) Categories : Databases, MySQL, PHP | | | Message of the Day - Random Message (Needs MySQL!) Categories : Databases, HTML and PHP, PHP, MySQL | | | A Complete table(ADD,EDIT,VIEW,DELETE) management System PHP,MYSQL, JAVASCRIPT Categories : PHP, MySQL, Java Script, Databases | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | |
|
|