I have a .htpasswd containing user profiles which need to be modified though php when i use the .htpasswd tool and encrypt it give the following encrypted password C:\wamp\Apache2\bin>htpasswd -nbd admin adminone Automatically using MD5 format. admin:$apr1$Lh2.....$xkfe1jUB7DIX5jyO7R641/ but when i use php md5 tool it gives 21f9188e66d4c94c09b7e096f8deda50 i need the MD5 APR format. Please advice...