• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.