Say I have this set up as my encryption key and I already have the encrypt library on autoload:
$config['encryption_key'] = 'bjA{<ATCs1w5?,8N(bJvgO3CW_<]t?@o';
How do I use it in an encrypt function?
function s()
{
$something = $this->encrypt->encode('eoaighaeg',$key);
echo $this->encrypt->decode($something, $key);
}
^ Non working example to give you an idea.
According to this documentation,
http://codeigniter.com/nightly_user_guide/libraries/encryption.html
If you didn’t supply any key parameter for $this->encrypt->encode() function, it automatically use config encryption key.