The application already has this feature embedded into its code. If you can't manage to generate a file manually, use Htaccess Wizard button and follow the general guidelines offered by the application.
Just add the required users to the file, the make sure to define the .htpasswd path from the httpd folder.