This just simply outputs what you need a username and password that can be used to authenticate from .htaccess
htpasswd -nb user password
user:Gnb6uE9Lp4gt2
If you want to write it straight to a file
htpasswd -cb /tmp/somefile.pw user password
How To Use This In .htaccess
AuthUserFile /tmp/somefile.pw
AuthName GetLost!!
AuthType Basic
#make sure you require a user!
require valid-user
apache, htpasswd, filethis, outputs, username, password, authenticate, htaccess, nb, user, gnb, ue, lp, cb, tmp, somefile, pw, authuserfile, authname, getlost, authtype, valid,