This page will generate the required string to enter into your htpasswd file that you can use to password protect a webpage or directory.