.htpasswd Entry Generator

Description

This little gem was written for two reasons. First off, administrators can stop being pestered by that one person on the team who insists on changing their password immediately after the batch has been processed and needs a new .htpasswd entry. Secondly, end users no longer have to reveal their [unencrypted] password to an admin in order for them to generate an entry. The script is very secure and easily customizable to your environment with two global variables. This script is essentially a wrapper for the 'htpasswd' binary, so the binary itself is required. Anyone running Apache should find the 'htpasswd' binary in Apache's 'bin' directory. One last thing, don't gripe about the HTML formatting, I know it is not pretty. Customize it if you are unhappy.

For more information about .htpasswd files, see passprotect.html

Author's Note: This was one of my earlier PHP scripts. It could easily be rewritten to be elegant and short. For any beginning PHP programmers out there, this is an excellent project. Short and actually useful. You can tell this was early in my development because it doesn't even produce valid HTML.

Demo

A fully functional demo that allows you to see what this script can do (not much :( ).

htpasswd-0.1.php

Download

View the source or download a tarball.

htpasswd-0.1.phps
htpasswd-0.1.tar.gz

Valid XHTML 1.1 Valid CSS