Hi,
Cake uses MD5, which is still the standard for most web applications.
You can see the method call md5 (grep for md5 and password ) in the
register and login functions of the user controller.
E.g. $this->data['User']['password'] = md5($this->data['User']
['password']);
if ($results && substr ($results['User']['password'], 0, 19) ==
substr(md5($this->data['User'] ['password']), 0, 19 ))
Of Course, you have to include your own hash function and change the
md5 calls to your new method.
You may also have to make some changes to the password field [increase
length?] of the DB, if required.
Thanks,
Bharadwaj
http://blogpostsite.com
On 12-Jul-10, at 1:15 AM, vanishri wrote:
HI,
am developing an application using cake php ,in which registartion and
login are working fine.am using cakephp's default hash methodology for
password encryption.
but now i want to do with encryption method " AES_ENCRYP " for
password field during registarion and while logging in.
how can i achive it ?
Please reply me.
Check out the new CakePHP Questions site http://cakeqs.org and help
others with their CakePHP related questions.
You received this message because you are subscribed to the Google
Groups "CakePHP" 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
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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