I'm using a system for authentication with which I store encrypted passwords in a database and generate .htaccess files on the server. I use this system to synchronise users in a MySQL-system with Apache authentication without having to use mod_auth_mysql on apache.
The system works perfectly on UNIX, using the default DES-encryption used by the crypt() command. But on windows it won't work...
Windows uses MD5 as default encryption. This is fine, MD5 is more powerfull than DES, were it not that Apache/htpasswd actually uses a modified algoritm for MD5-encryption for http-authentication.
There seems no way to figure out the encrypted string using PHP, since PHP uses the default algoritm for MD5, which apparently produces entirely different strings then the algoritm apache/htpasswd are using.
Did anyone encounter this problem before and worked out a solution for it?