CodeIgniter Forums
Output encryption library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Output encryption library (/showthread.php?tid=72651)



Output encryption library - omid_student - 01-18-2019

Hi
I use below code for encryption in my app
PHP Code:
$this->load->library('encryption');
$this->encryption->initialize(array('cipher' => 'aes-256','mode' => 'cbc','key' => 'abcdefgh01234567abcdefgh01234567'));
echo 
$this->encryption->encrypt('omid'); 

What is encrypt result type?(base64 or hex or other)

Because when i try to decrypt it in android or ios,have an error