thinkoholic.com - a blog by markus nolf

Archive for August 9th, 2005

[posted: Tuesday, 2005-08-09] [category: technology]

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";