Using Mhash Instead Of Php Crypt


I am new to Yii. Is it possible to change the encryption from php crypt() to mhash() for using in password in Yii ?

If yes, how to do that ?



What about the Portable PHP password hashing (PHPASS)? You can read this wiki to know how to use it on Yii and also you can check the Openwall site.

Well, user authentication (including password validation) is entirely in the application author’s hands. So yes, you can use the mhash extension for that, although it’s not recommended as it seems to be deprecated since PHP 5.3. The bcrypt method mentioned by RSfTDL is certainly more future-proof.

Thank you RsfTDL & Da:sourcerer. I’ll take a look at the link.