| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README | 2012-07-07 | 1.4 kB | |
| php-digest.php | 2012-07-07 | 11.5 kB | |
| Totals: 2 Items | 12.9 kB | 0 | |
PHP Digest V. 0.1 (6/2012)
Introduction:
This library is designed to add Digest Authentication to PHP applications.
Alpha Notes:
This was somewhat hastily put together, and I don't expect it to be perfect.
If you have issues, open up a ticket on sourceforge
(sourceforge.net/projects/libphpdigest)
Things that are on my radar
-->Encrypt the A1 value in the database
-->DDoS/Flood Control to block out IP's that are having lots of failed auths
-->Auth logging
-->Speeding up / Cleaning up
If you want more, open up a ticket.
Config:
Open up the file and scroll down a bit, all the config is towards the top and
commented with functions/etc.
Usage:
Drop the php-digest.php file in your directory and include it in the pages
you want to secure. If you are OK with using the MySQL connections, make sure
you have a database with at least two tables (users, nonce)
In the users table, have at least the field `username` and `hash`
In Nonce, have `nonce`, `issue`, and `expire`.
Eventually, I'll have a few .sql files so you can import if you want.
BUT! You can also write your own functions and set them in the config.
To secure a page, run the function authUser(); on the page. That's it.
Once this project is a bit more refined, I'll write up some proper
documentation. For now, open a ticket and I'll get to you.
Changelog:
0.1
-->Initial Release