Perl has a function in the Crypt:πES package called md5_base64. It returns 22 chars. I would assume this could be accomplished by base64_encode(md5("passphrase")), or md5(base64_encode("passphrase")), but both return 32 chars. Anyone know how this can be natively completed in PHP?
Reason being: we use an LDAP server to authenticate our qmail users. The perl script we use to add users (and effectively generate pw's) uses this md5_base64 function on the password, and then dumps it to the LDAP. Now I wanna do that in PHP π