htPasswd is a very useful library php class script to manage and control .htaccess
files. If you have few users to to use in your website then it is
possible to add/delete/login users using htaccess file authentication.
The unique feature is that you can authenticate, add, edit passwords
and delete users all just by calling functions from the class.
It is
free and released under open source GPL.