In writing an LDAP manipulation tool in PHP, I've found that I need the mhash libraries for generating MD5 and SHA1 passwords from within PHP. While I could (and probably will) build an RPM of mhash and rebuild my RPM of PHP to include it in the same way it's currently done to accomodate IMAP and LDAP, I am hoping that you will consider adding this soon. There are folks on the web who are building RPM's with this in the same manner I'm describing, but it would nice to see Redhat bless such an RPM. Mhash is LGPL software (http://sourceforge.net/projects/mhash) PHP.net's site on mhash: http://www.php.net/manual/en/ref.mhash.php mhash's homepage: http://mhash.sourceforge.net Thank you, Brian
PHP already includes an MD5 extension - PHP 4.3 includes a SHA1 extension too, so I'm marking this a duplicate of the RFE for 4.3.
Really marking as duplicate. *** This bug has been marked as a duplicate of 80591 ***
The MD5 and SHA1 functions inherent to PHP that you refer to (ie without mhash) aren't suitable for generating MD5 and/or SHA1 passwords, are they?
Don't see why not - mhash gives you hashes of arbitrary data (e.g. passwords) using standard algorithms, just the same as the sha1/md5 extensions.
Though mhash would be much faster, of course. The best route would be to extend the openssl extension to use the OpenSSL digest interfaces.
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.