CodeIgniter Forums
Problem in Encryption library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Problem in Encryption library (/thread-74133.html)



Problem in Encryption library - omid_student - 07-27-2019

Hi
I use encryption library in Codeigniter
There is a big problem
I try use below code for encrypt data

PHP Code:
$this->load->library('encryption');
        
$this->encryption->initialize(
        array(
'driver' => 'openssl',
                
'cipher' => 'aes-128',
                
'mode' => 'ecb',
                
'key' => '1111111111111111'
        
));
        
        echo 
$this->encryption->encrypt('omid'); 

And try decrypt in https://www.devglan.com/online-tools/aes-encryption-decryption
But this site cannot decrypt it
Why?
I need encrypt data and can decrypt in any programming language easily


RE: Problem in Encryption library - InsiteFX - 07-28-2019

It could be the version of php or a character encoding miss match.