Welcome Guest, Not a member yet? Register   Sign In
Problem in Encryption library
#1

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...decryption
But this site cannot decrypt it
Why?
I need encrypt data and can decrypt in any programming language easily
Reply
#2

It could be the version of php or a character encoding miss match.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB