.htpasswd

[posted: ]  [0 comments]

memo to self: this is how you create an encrypted password for the .htpasswd file through a php-script:

    $password = "yourpasswd";
    $encrypted = crypt($password,substr($password,0,2));
    echo "$password >> $encrypted";

Leave a Reply