You could always do beforeSave() on your model to apply md5() to the
password field in the data member.

However, if you're using the Cake Auth component it will do it for
you. The default is to produce sha1 hashes (actually a salted hash,
based on the Security.salt in the app/config/core.php). However, if
you were to call Security::setHash('md5') before the component was
run, you will get a salted md5 hash instead. Though in this scenario,
you're probably just as well off with sha1.

Simon
http://www.simonellistonball.com/

On Apr 4, 10:51 am, gaynhomgaynhach <[EMAIL PROTECTED]> wrote:
> hi all,
> are you help me the ways input password into mysql under md5 form.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to