How would I create a .htpasswd file from within PHP instead of using the utility?
I know the structure is
username:encryptedpassword
but how do i encrypt?
Couldn't find any references to the specific encryption that is being used.
I need it under Linux at the moment, but I understand there is a difference, so a note on Windows encryption would also be appreciated.
Thanks.