es el fichero donde se ponen las relaciones de usuario y contraseña.
$ htpasswd <opciones> <passfile> <user> <password>
stdout
htpasswd -b .htpasswd mate m2t3
htpasswd .htpasswd mate
htpasswd -n mate
htpasswd -nb mate m2t3
htpasswd -bc <file> <user> <pass>
<?php // Password to be encrypted for a .htpasswd file $clearTextPassword = 'some password'; // Encrypt password $password = crypt($clearTextPassword, base64_encode($clearTextPassword)); // Print encrypted password echo $password; ?>
$ htdigest [-c] passwordfile username realm