I'm using Cakephp 2.1.
How can I encrypt and decrypt a string.
As per CakePHP documentation:
Encrypt your secret password with my_key
$secret = Security::cipher('my secret password', 'my_key');
Later decrypt your secret password
$nosecret = Security::cipher($secret, 'my_key');