www.inkompetent.de/ knowledge base/ software/ htpasswd encrypt

 

Problem:
 
You want to protect directories within your
webspace with password and username.
You might also want to encrypt strings for other
purposes.
 

Solution:
 
This solution should work for any apache-style-webserver: