I am trying to password protect a directory, and have two files in the directory which should password protected it:
use
htpasswd -b .htpasswd admin admin
to use the password from command line.