The mcrypt_encrypt manual page says that:
It is recommended to use the
mhashfunctions to create a key from a string.
But the introduction of the mhash manual says that:
Note: This extension is obsoleted by Hash.
However, the closest thing I could find to the rather useful mhash_keygen_s2k() function was the hash_pbkdf2() function. However, I'm not even sure if it fits the job since it only exists in the SVN.
So, can I rely on the mhash extension, or it will eventually become deprecated and dropped? If so, is there any alternative built-in function or do I have to implement the Salted S2K algorithm myself?