in reply to Best methods of http authentication

I've written a couple of different methods for http(s) authentication and looked at a few more. I'm using the cookie method currently, and it's working pretty well on the small (200 or so) user base that this tool supports.

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.

  • Comment on Re: Best methods of http authentication