I'm building a quick site with CodeIgniter and currently I'm making use of the CI 'encrypt' library. Reading through here it sounds like I just throw on a quick:
$this->encrypt->encode($secret_data);
and do this when you want to use it:
$this->encrypt->decode($encripted_string);
Then the magic of CI and Mcrypt do the rest.
Well I'm not sure I can sleep without knowing what is going on in the background. So I have two questions...
How is this working? Or is there a good resource to explain to me how this is working that I can read up on it?
Is this generally thought of as a safe way to encrypt data? If not where else should I be looking.