Use the following .htpasswd generator to secure your Apache web directories.
Your browser does not support IFRAMES. Please view the generator at http://edrackham.com/tutorials/online-htpasswd-generator/
Make sure you have a .htaccess and .htpasswd file in the directory you want to secure, then add the entries once you've generated your password.
Here is a simple MD5 hash generator I created quickly as part of a useful toolset I'm planning to build up.
Your browser doesn't support IFRAMES. You can see the MD5 hash generator here.
The code to generate an MD5 hash using PHP is simple:
md5($string_to_convert);