Does anyone know how to encrypt a password for use in htaccess? I creating a secure environment using PHP, I create the directory structure and htaccess files dynamically based on php forms / sessions but I'm having problems encrypting the password for the htpasswd file for apache.
I have see many examples but most seem to be perl scripts which I don't want to use! Can it be done with PHP? Andrew