Aquesta és una revisió antiga del document


.htpasswd

es el fichero donde se ponen las relaciones de usuario y contraseña.

euro
mate:$apr1$AnjKUuTH$V1X6AKDeB/YOaANq2pWa50
mate:$apr1$n.B2sTtw$zCzODB7DnDUDwIrEoz4A31
mate:dEluHr16Ij1G2
  • $ htpasswd <opciones> <user>
    • opciones:
      • -c <fichero>
      • -m Force MD5 encryption of the password (default).
      • -d Force CRYPT encryption of the password.
      • -p Do not encrypt the password (plaintext).
      • -s Force SHA encryption of the password.
  • en PHP:
<?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;
?>
  • web/apache/htpasswd.1331142918.txt.gz
  • Darrera modificació: 07/03/2012 09:55
  • per mate