in reply to Best methods of http authentication
I store a username and unix crypt password with a predetermined random string (example: erasei:-FOOBAR-:n31s9xyn4A) which is blowfish encrypted. That is what I store in the cookie. Then I store a set of username/crypted passwd combinations in a database and then compare the two crypted passwords, the random string, and syntax of the string during authentication. This method allows me to also store an access level in the database that will allow or disallow access to certain sections/pages of the tool based on username; something that htaccess doesn't allow us to do.
Also, I have looked into using mod_auth_msql but just haven't taken the time to fully research it yet.
|
|---|