Reputation: 2133
Unfortunately I have to work in rather obsolete version of cake php i.e 1.1. I need to employ mysql AES_ENCRYPT and AES_DECRYPT in it which I am unable to do so.
I was trying to do it like this
$this->data['xx']['password'] = `AES_ENCRYPT($this->data['xx']['password'],$this->pass)`;
But to know avail as it doesnt encrypts it and in this way AES_ENCRYPT doesnt comes into play . Some one please give me a heads up for this.
Thank You.
Upvotes: 0
Views: 1048
Reputation: 51
As above, you should be hashing the passwords.
http://book.cakephp.org/1.3/en/The-Manual/Core-Components/Authentication.html
See if that functionality is available as its fairly integral to cake so would be surprised if it didn't exist in 1.1. otherwise use the salts stored in your system and manually hash them.
Upvotes: 2